Re: NumberFormatters and sci notation
Re: NumberFormatters and sci notation
- Subject: Re: NumberFormatters and sci notation
- From: Graham J Lee <email@hidden>
- Date: Wed, 18 Jan 2006 15:00:19 +0000
On 18 Jan 2006, at 14:50, Johan Kool wrote:
Did this not work?
[fmt setFormat:@"##0,00.00"];
I have not tried this myself, but it's how I would expect it should
work from the documentation.
It gives results like:
0.2000000000000123
and:
5.551115123125783e-17
when used in combination with -setNumberStyle: which doesn't appear
correct at all. BTW I'm instantiating and attaching the formatter in
my NSDocument subclass' -init method, as the text fields are outlets
of that class.
Cheers,
Graham.
--
Graham Lee GPG Key ID: 01D5B9D8
UNIX Systems Manager,
Oxford Physics Practical Course
http://users.ox.ac.uk/~wadh1342 01865 273450
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden