From ba308f69b90ba61e3311887491a2f30eefe57c9c Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 18 Feb 2005 14:09:53 +0000 Subject: [PATCH] =?UTF-8?q?Formate=20la=20marge=20pour=20plus=20de=20lisib?= =?UTF-8?q?ilit=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/stats/clients/alerte.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/stats/clients/alerte.php b/htdocs/telephonie/stats/clients/alerte.php index 140ed946d8e..43279ee6f85 100644 --- a/htdocs/telephonie/stats/clients/alerte.php +++ b/htdocs/telephonie/stats/clients/alerte.php @@ -95,11 +95,15 @@ if ($db->query($sql)) if ($marge < 0) { - print ''.$marge." %\n"; + print ''; + printf("%.2f",$marge); + print " %\n"; } else { - print ''.$marge." %\n"; + print ''; + printf("%.2f",$marge); + print " %\n"; } print ''.price($row[2])." HT\n"; print ''.price($row[1])." HT\n";