#4232 [Ver->Csd]: printf %e does not display exponent

From: Date: Tue, 15 Oct 2002 12:20:15 +0000
Subject: #4232 [Ver->Csd]: printf %e does not display exponent
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22490@lists.php.net to get a copy of this message
ID: 4232 Updated by: iliaa@php.net Reported By: keith@keithford.com -Status: Verified +Status: Closed Bug Type: Strings related Operating System: Linux RedHat 5.2 PHP Version: 4.2.3 New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-09-30 18:24:13] hholzgra@php.net verified as still broken :( ------------------------------------------------------------------------ [2000-04-25 10:56:25] keith@keithford.com The following code displays the following: 1.234E-18 %e=1.23400 1.234E+18 %e=1.23400 ============================================= <pre> <?php $v1 = 1.234E-18; echo "$v1\n"; printf ("%%e=%e\n", $v1); echo "\n"; $v1 = 1.234E+18; echo "$v1\n"; printf ("%%e=%e\n", $v1); echo "\n"; ?> ======================================== ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=4232&edit=1

« previous php.bugs (#22490) next »