From 437372647fb72255ef6d3bb56a4562a25ede81ba Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 28 May 2004 21:45:59 +0000 Subject: [PATCH] fix #28555: missing the 'e' specifier git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@159916 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/sprintf.xml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/reference/strings/functions/sprintf.xml b/reference/strings/functions/sprintf.xml index 5515c19145..1845a50e55 100644 --- a/reference/strings/functions/sprintf.xml +++ b/reference/strings/functions/sprintf.xml @@ -1,5 +1,5 @@ - + @@ -87,6 +87,10 @@ d - the argument is treated as an integer, and presented as a (signed) decimal number. + + e - the argument is treated as scientific + notation (e.g. 1.2e+2). + u - the argument is treated as an integer, and presented as an unsigned decimal number. @@ -210,6 +214,18 @@ $money = $money1 + $money2; $formatted = sprintf("%01.2f", $money); // echo $formatted will output "123.10" ?> +]]> + + + + <function>sprintf</function>: scientific notation + + ]]>