2011/9/17 Bill Guion :
> On Sep 17, 2011, at 3:46 AM, Cyril Lopez wrote:
>
>> From: Cyril Lopez
>> Date: September 16, 2011 10:58:28 AM EDT
>> To: php-general@lists.php.net
>> Subject: Round with money_format
>>
>> Hi,
>>
>> Can someone help me understand how money_format() rounds numbers ?
>>
>>
On 17 September 2011 15:56, Bill Guion wrote:
> On Sep 17, 2011, at 3:46 AM, Cyril Lopez wrote:
>
>> From: Cyril Lopez
>> Date: September 16, 2011 10:58:28 AM EDT
>> To: php-general@lists.php.net
>> Subject: Round with money_format
>>
>> Hi,
>>
>> Can someone help me understand how money_format()
On Sep 17, 2011, at 10:56 AM, Bill Guion wrote:
> On Sep 17, 2011, at 3:46 AM, Cyril Lopez wrote:
>>
>> Can someone help me understand how money_format() rounds numbers ?
>>
> As someone else pointed out, rounding rules vary by locale, but I was taught
> 40+ years ago in graduate school programm
On Sep 17, 2011, at 3:46 AM, Cyril Lopez wrote:
> From: Cyril Lopez
> Date: September 16, 2011 10:58:28 AM EDT
> To: php-general@lists.php.net
> Subject: Round with money_format
>
> Hi,
>
> Can someone help me understand how money_format() rounds numbers ?
>
> setlocale(LC_ALL, 'fr_FR.UTF-8')
Oops...
On 16 Sep 2011, at 16:36, Stuart Dallas wrote:
> On 16 Sep 2011, at 15:58, Cyril Lopez wrote:
>
>> Can someone help me understand how money_format() rounds numbers ?
>>
>> > setlocale(LC_ALL, 'fr_FR.UTF-8');
>> $price = 12.665;
>> echo money_format('%i',$price);
>> // 12.66 EUR, 12.67 E
On 16 Sep 2011, at 15:58, Cyril Lopez wrote:
> Can someone help me understand how money_format() rounds numbers ?
>
> setlocale(LC_ALL, 'fr_FR.UTF-8');
> $price = 12.665;
> echo money_format('%i',$price);
> // 12.66 EUR, 12.67 EUR expected
>
> $price2 = 12.666;
> echo money_format('%i',$p
On 16 September 2011 15:58, Cyril Lopez wrote:
> Hi,
>
> Can someone help me understand how money_format() rounds numbers ?
>
> setlocale(LC_ALL, 'fr_FR.UTF-8');
> $price = 12.665;
> echo money_format('%i',$price);
> // 12.66 EUR, 12.67 EUR expected
>
> $price2 = 12.666;
> echo money_format
Hi,
Can someone help me understand how money_format() rounds numbers ?
Misconfiguration ? Bug ?
Thanks !
Cyril
Config :
Debian Lenny, PHP 5.3.8
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
8 matches
Mail list logo