[PySide] Strange behaviour of QLocale.toString()

Adrian Klaver adrian.klaver at gmail.com
Mon Apr 15 04:07:51 CEST 2013


On 04/14/2013 06:14 PM, Tim Doty wrote:
>
> On Apr 14, 2013, at 6:30 PM, Algis Kabaila <akabaila at pcug.org.au> wrote:
>
>> Just to add a little fuel to this fire:
>>
>> First, by hand try to convert the "exact" 0.1 then 0.01 decimal to their binary equivalent. Send to this list the binary value.  Is it exact?
>>
>> Second, who would care about 1 cent in $10 000 ?
>
> people who are stealing money :) Its been some years, but taking the roundings has actually been done. It has always amused me when people insist on using float for "dollars" rather than tracking cents exactly.

Yes, the modern equivalent of shaving coins. Why coins have knurled edges.

>
>
>>
>> Al.

-- 
Adrian Klaver
adrian.klaver at gmail.com



More information about the PySide mailing list