Re: number formatting
Re: number formatting
- Subject: Re: number formatting
- From: Lance Bland <email@hidden>
- Date: Sat, 23 Feb 2002 16:45:21 -0500
Ben,
On Saturday, February 23, 2002, at 04:23 PM, email@hidden wrote:
The value is represented in the machine as 0.34999...
To force it to show up as 0.35 in a text field the text field would
have
to force the precision to 2 places. Then you'd be still complaining
about
the cases where you wanted more or less precision.
I believe what Lance is really arguing for is an infinite-precision
numeric type in Cocoa. Which, I will admit, would be useful for many
applications. :->
Hey, now we're talking ... features not implementation, thanks! Yeah, I
was thinking maybe that, or what we currently have which is an option to
format based on the precision of the representation and value. We
already have the 2nd one, and it seems to work well enough (although not
integrated into Interface Builder). I'm wondering if we should implement
the unlimited precision interface as well. Should be easy enough to do.
Thanks for your consideration.
Also, I'm not arguing, complaining, or anything like that. I'm asking
for suggestions, features, ideas, trying to understand other people's
points of view, trying to learn, thinking outside the NSFormatter box if
you may, etc.
-lance
_______________________________________________
Lance Bland
System Administrator at VVI
mailto:email@hidden
http://www.vvi.com
Realtime, bulk and web data reporting and visualization
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.