Annotation of embedaddon/php/ext/standard/tests/strings/bug36392.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #36392 (wrong number of decimal digits with %e specifier in sprintf)
! 3: --FILE--
! 4: <?php
! 5: echo sprintf("%e\n", 1.123456789);
! 6: echo sprintf("%.10e\n", 1.123456789);
! 7: echo sprintf("%.0e\n", 1.123456789);
! 8: echo sprintf("%.1e\n", 1.123456789);
! 9: echo sprintf("%5.1e\n", 1.123456789);
! 10: ?>
! 11: --EXPECT--
! 12: 1.123457e+0
! 13: 1.1234567890e+0
! 14: 1e+0
! 15: 1.1e+0
! 16: 1.1e+0
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>