From a7ec74d5b512df6ee6c3c0424ac1e262ce7b34a6 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 23 Mar 2007 17:07:29 +0000 Subject: [PATCH] %.123e stands for 1.123 since PHP 5.2.1 (bug #40482) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@232464 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/sprintf.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reference/strings/functions/sprintf.xml b/reference/strings/functions/sprintf.xml index cfeb2c89ed..8ff4ac0798 100644 --- a/reference/strings/functions/sprintf.xml +++ b/reference/strings/functions/sprintf.xml @@ -1,5 +1,5 @@ - + @@ -98,6 +98,9 @@ e - the argument is treated as scientific notation (e.g. 1.2e+2). + The precision specifier stands for the number of digits after the + decimal point since PHP 5.2.1. In earlier versions, it was taken as + number of significant digits (one less). u - the argument is treated as an @@ -315,7 +318,7 @@ $formatted = sprintf("%01.2f", $money); ]]>