[MacRuby-devel] numberWithDouble:NaN

Joel Reymont joelr1 at gmail.com
Fri Jan 7 06:52:07 PST 2011


How do you do this?

[NSNumber numberWithDouble:NAN]

NAN is defined as __builtin_nanf("0x7fc00000") in math.h

	Thanks, Joel

---
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont







More information about the MacRuby-devel mailing list