From: SVN Migration Date: Tue, 18 Nov 2003 02:50:42 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.5RC1~194 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79c6c1efbe0ebb7ddbe7fb1fe4f9b01b5ccd2f4b;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/standard/tests/math/bug25694.phpt b/ext/standard/tests/math/bug25694.phpt new file mode 100644 index 0000000000..165e1db083 --- /dev/null +++ b/ext/standard/tests/math/bug25694.phpt @@ -0,0 +1,35 @@ +--TEST-- +Bug #25694 (round() and number_format() inconsistency) +--FILE-- + +--EXPECT-- +round 0.045 = 0.05 +number format 0.045 = 0.05 + +round 0.055 = 0.06 +number format 0.055 = 0.06 + +round 5.045 = 5.05 +number format 5.045 = 5.05 + +round 5.055 = 5.06 +number format 5.055 = 5.06 + +round 3.025 = 3.03 +number format 3.025 = 3.03 + +round 4.025 = 4.03 +number format 4.025 = 4.03