|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-13 11:26 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Hi, the following script <?php $x=sprintf("%10.5e", 1.1); echo "$x"; ?> produces 1.1000e+ whereas <?php $x=sprintf("%10.5e", 0.11); echo "$x"; ?> returns the correct result 1.1000e-1 I would expect that output for the first example should be something like 1.1000e+0 or 1.1000e0 Regards Andreas Maul