Re: sprintf() oddness

From: Date: Sun, 02 Dec 2007 21:18:22 +0000
Subject: Re: sprintf() oddness
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-265390@lists.php.net to get a copy of this message
At 6:08 AM -0500 12/2/07, Christoph wrote:
If the general rule is to round up for 5s when preceeding is odd and round down when even, that's not occuring here when using round().
No, you're not reading what I wrote. I said MY general rule is to round up when the preceding digit is even, whereas php's round function always rounds down. As for sprint_f(), I haven't investigated that. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#265390) next »