lua-users home
lua-l archive

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


and looks like second infinity was bigger than first one... as it returns '-nan' not just 'nan' :)


On Thu, Dec 19, 2013 at 9:03 PM, Coda Highland <chighland@gmail.com> wrote:
On Thu, Dec 19, 2013 at 9:59 AM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> Until someone swaps out the math library for one that supports complex
>> numbers...
>
> Ok, so try
>         local nan_value = 1e999999-1e999999
>

Infinity minus infinity. Indeterminate form. I like it!

/s/ Adam