summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug36392.phpt
blob: 8e4cd16c67043af6b207637e8db4055c72d2b00b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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