On Mon, Nov 3, 2008 at 8:30 PM, HAMILTON, Steven
<[EMAIL PROTECTED]> wrote:
> That would be an idea. I think my reluctance to do that initially was down
> still not understanding floats and their imprecision. I use bindings for some
> columns directly into the Core Data INT attribute. I presume I
el Hyde [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 4 November 2008 9:38 AM
To: HAMILTON, Steven
Subject: Re: FW: NSNumberFormatter: Display INT as decimal
Can you not simply cast to float, divide by your scaling factor, and
display the result at display time? Then you can just use the normal
float form
string format on the NSNumberFormatter is
like so;
“#,##0’.’00”
Feed: Cocoa mail archive
Posted on: Monday, 3 November 2008 6:58 PM
Author: Steven Hamilton
Subject: NSNumberFormatter: Display INT as decimal
Hi Folks,
Following on from my previous query regarding decimals and floats,
I
Hi Folks,
Following on from my previous query regarding decimals and floats,
I've decided to refactor my code to maintain a base component of any
currency in use gnucash stylee. This means all values are kept as INT
for accuracy. However, I wish to display the "cent" amounts as dollars
whi