1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/standard/tests/strings/bug28633.phpt

11 lines
184 B
PHP

--TEST--
Bug #28633 (sprintf incorrectly adding padding to floats)
--FILE--
<?php
echo sprintf("%05.2f", 0.02) . "\n";
echo sprintf("%05.2f", 2.02) . "\n";
?>
--EXPECT--
00.02
02.02