NYCPHP Meetup

NYPHP.org

[nycphp-talk] number_format / round issue

Donald J Organ IV dorgan at optonline.net
Thu Nov 9 17:43:04 EST 2006


yes, I have tried round.

Daniel Convissor wrote:
> 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
>
>   




More information about the talk mailing list