From 79c6c1efbe0ebb7ddbe7fb1fe4f9b01b5ccd2f4b Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Tue, 18 Nov 2003 02:50:42 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- ext/standard/tests/math/bug25694.phpt | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 ext/standard/tests/math/bug25694.phpt 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 -- 2.50.1