📄 bug25694.phpt
字号:
--TEST--Bug #25694 (round() and number_format() inconsistency)--FILE--<?phpecho "round 0.045 = " . round(0.045, 2) . "\n";echo "number format 0.045 = " . number_format(0.045, 2) . "\n\n";echo "round 0.055 = " . round(0.055, 2) . "\n";echo "number format 0.055 = " . number_format(0.055, 2) . "\n\n";echo "round 5.045 = " . round(5.045, 2) . "\n";echo "number format 5.045 = " . number_format(5.045, 2) . "\n\n";echo "round 5.055 = " . round(5.055, 2) . "\n";echo "number format 5.055 = " . number_format(5.055, 2) . "\n\n";echo "round 3.025 = " . round(3.025, 2) . "\n";echo "number format 3.025 = " . number_format(3.025, 2) . "\n\n";echo "round 4.025 = " . round(4.025, 2) . "\n";echo "number format 4.025 = " . number_format(4.025, 2) . "\n\n";?>--EXPECT--round 0.045 = 0.05number format 0.045 = 0.05round 0.055 = 0.06number format 0.055 = 0.06round 5.045 = 5.05number format 5.045 = 5.05round 5.055 = 5.06number format 5.055 = 5.06round 3.025 = 3.03number format 3.025 = 3.03round 4.025 = 4.03number format 4.025 = 4.03
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -