lua-users home
lua-l archive

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


> > =1/0
> 1.#INF
> 
> the 1.#INF is a overflow.Why not raise a error?

Overflow cannot be trapped in ANSI C. Nor raising an error is the right thing
for all applications. Numerical programs are quite happy with 1/0 = INF.
IEEE 754, which most CPUs support, encourages that.