lua-users home
lua-l archive

Re: [5.3] Converting a floating point number to integer.

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


2014年11月18日 6:11 GMT+02:00 Tim Hill <drtimhill@gmail.com>:
> Now, I know what is going on, and you know what is going on.
> But does the average scripter know?
Does the average scripter know what is going on with
metamethods, coroutines, the call stack, upvalues etc?
Some things in Lua are hard merely because the
underlying computer science concept is hard. The
subtlety of hardware representation of numbers is
not easy. If the average scripter does not understand
twos complement, integer overflow, etc, there is no way
that Lua can supply the deficiency, short of seamlessly
switching to multiprecision like Python does.

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