From 4dbb43609539bcd3c3804646928f0228e8f696aa Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Sat, 26 Sep 2015 22:50:49 +0200 Subject: [PATCH] fix money display in HTML --- www/inc/classes/language_manager.php | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/www/inc/classes/language_manager.php b/www/inc/classes/language_manager.php index c32b345..24fdf0f 100644 --- a/www/inc/classes/language_manager.php +++ b/www/inc/classes/language_manager.php @@ -294,7 +294,9 @@ class LanguageManager $num-=$num1; for($i=0;$i<$digits;$i++)$num*=10.; $r.=$this->formatcfg->getdecimaldot(); - $r.=round($num,0); + $frac="".round($num,0); + while(strlen($frac)<$digits)$frac="0".$frac; + $r.=$frac; return $r; } -- 1.7.2.5