lua-users home
lua-l archive

Re: Testing for NaN (yes, I know, it has been discussed ad nauseum...)

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


On 11/7/2010 2:58 AM, Mike McGonagle wrote:
so, does it really have a '-' in front? on a mac, it just returns
'nan' for tostring(x) with 'x' being "not a number"...
Ultimately, I think it depends on how fragile you wish to allow your application to be. Even a C power patch for a few extra functions may break on certain platforms. For Lua-based methods, it's going to be kinda problematic if this involves an expectation of 'easy' portability unless there is very aggressive testing on lots of platforms...
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

AltStyle によって変換されたページ (->オリジナル) /