discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wrong Description from NSNumber


From: Gerrit Van Dyk
Subject: Wrong Description from NSNumber
Date: Mon, 12 Nov 2001 12:31:23 +0200

Hi all,

I have finished porting our backend system to gnustep. Our system makes use
of NSNumber's description method quite a lot. I am sorry to say but this
returns total garbage from an implementation point of view. If I construct a
number from a float ie [NSNumber numberWithFloat:1.5] the description method
returns "0.0000000" which is definitely not 1.5. If I construct a number
from a short ie [NSNumber numberWithShort:25] the description method returns
"-1073807335". 

Should I implement my own description method that returns the correct value?

Regards
Gerrit van Dyk
 
-------------------------------------------------------------------------
This e-mail is intended only for the use of the individual or entity named
above and may contain information that is confidential and privileged,
proprietary to the company and protected by law. If you are not the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this e-mail is strictly prohibited. Opinions, conclusions and
other information in this message that do not relate to the official
business of our company shall be understood as neither given nor endorsed by
it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]