NYCPHP Meetup

NYPHP.org

[nycphp-talk] number_format / round issue

Daniel Convissor danielc at analysisandsolutions.com
Thu Nov 9 17:36:41 EST 2006


On Wed, Nov 08, 2006 at 12:44:19PM -0500, Donald J Organ IV wrote:
> but I am having a problem with 4.075 when applying 
> number_format() I should be getting 4.08 and i am not.
> 
> This is running on PHP 4.4.4 on IIS
> 
> If i run the same code on a Linux PHP 5.2 box the correct number is 
> returned,

Have you tried round() or sprintf()?

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list