noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 03/04: nb has 4 decimal by default


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 03/04: nb has 4 decimal by default
Date: Tue, 15 Dec 2015 16:42:55 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit c62e0f33ef7b0405f37b3493513e62f4a4bcb7cb
Author: Dany De Bontridder <address@hidden>
Date:   Tue Dec 15 08:06:29 2015 +0100

    nb has 4 decimal by default
---
 include/lib/ac_common.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index 9223761..8fe3d14 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -107,7 +107,7 @@ function j($p_string)
 function nb($p_number)
 {
     $r=trim($p_number);
-    $r = sprintf('%.2f', $p_number);
+    $r = sprintf('%.4f', $p_number);
     $r = str_replace('.', ',', $r);
 
     return $r;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]