[MacRuby-devel] numberWithDouble:NaN

Laurent Sansonetti lsansonetti at apple.com
Fri Jan 7 14:20:25 PST 2011


Yep.

Laurent

On Jan 7, 2011, at 9:41 AM, Joel Reymont wrote:

> 
> On Jan 7, 2011, at 5:21 PM, Thibault Martin-Lagardette wrote:
> 
>> I'd say something like:
>> 	a = NSNumber.numberWithDouble(0.0/0.0)
>> which returns the exact same thing as:
>> 	a = (0.0/0.0)
> 
> Does the resulting NaN automatically convert to NSNumber?
> 
> I need to pass the object initialized this way to a function in another framework, e.g.
> 
>    [focusParameter setNumberValue:[NSNumber numberWithDouble:NAN]];
> 
> ---
> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
> 
> 
> 
> 
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110107/37e53d97/attachment.html>


More information about the MacRuby-devel mailing list