From de7aa96599292e44d3352720c394d3aedff91f66 Mon Sep 17 00:00:00 2001 From: patrick Date: Tue, 10 Sep 2019 15:56:56 +1000 Subject: [PATCH] local float number 1.3333333 to 1.33 --- ts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts.php b/ts.php index 8b0f1cd..1d0c179 100644 --- a/ts.php +++ b/ts.php @@ -1233,9 +1233,10 @@ ZOT; for ($i=1; $i<=14; $i++) { $ratetype_item["local_$i"] = $hours[$i-1]; + $ratetype_item["local_$i"] = number_format($ratetype_item["local_$i"], 2); $item['local_total'] += $hours[$i-1]; } - + $item['local_total'] = number_format($item['local_total'], 2); //for remote if ( $buddy != NULL ) {