Re: NSNumber stringValue

2009-12-12 Thread RedleX Support
You should not compare floating point numbers for equality in most cases. This is true of any language on any platform. Indeed, some floating-point numbers (such as the one represented by the integer 0x7fc0) will compare as not equal to themselves: I think what the OP really wanted to

NSNumber stringValue

2009-12-11 Thread RedleX Support
Hi, I need to output a double into a text file and then read it back with 100% accuracy, will using NSNumber stringValue and then using NSString doubleValue give me good results? For example, if I write the following: double a,b; a=some number; b=[[[NSNumber numberWithDouble:a] stringVal