mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Round floating point numbers to 5 decimals.
This commit is contained in:
parent
e7d4c15a7c
commit
5af34c3a3d
@ -3586,7 +3586,7 @@ sub process_data ($$$$$$$) {
|
||||
# TODO: Float precission should be adjusted here in the future with a global
|
||||
# config parameter
|
||||
# Format data
|
||||
$data = sprintf("%.2f", $data);
|
||||
$data = sprintf("%.5f", $data);
|
||||
|
||||
$data_object->{'data'} = $data;
|
||||
return $data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user