mirror of
https://github.com/php/php-src.git
synced 2025-01-09 04:24:06 +08:00
f40ebf4171
sprintf).
17 lines
348 B
PHP
17 lines
348 B
PHP
--TEST--
|
|
Bug #36392 (wrong number of decimal digits with %e specifier in sprintf)
|
|
--FILE--
|
|
<?php
|
|
echo sprintf("%e\n", 1.123456789);
|
|
echo sprintf("%.10e\n", 1.123456789);
|
|
echo sprintf("%.0e\n", 1.123456789);
|
|
echo sprintf("%.1e\n", 1.123456789);
|
|
echo sprintf("%5.1e\n", 1.123456789);
|
|
?>
|
|
--EXPECT--
|
|
1.123457e+0
|
|
1.1234567890e+0
|
|
1e+0
|
|
1.1e+0
|
|
1.1e+0
|