lua-users home
lua-l archive

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


On Thu, Jan 22, 2009 at 11:28 AM, Linker <linker.m.lin@gmail.com> wrote:
Sorry for my mistake.
But I found that I cannot assign 1.#INF to a variable.
eg.


> i=1/0
> =i
1.#INF
> j=1.#INF
stdin:1: unexpected symbol near '#'
>


Also - if you really want to use the value 1.#INF in your program (I'm not sure why this would be useful) just store it in a variable, something like this:

> i = 1/0
> = i
1.#INF
> j = i
> = j
1.#INF
> k = i
> -- and so on...