lua-users home
lua-l archive

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


On Thursday, February 28, 2013 05:40:15 PM Christopher Berardi wrote:
> I would welcome distinct number types (e.g., real, integer). But, if we
> must use a single number type I would like it to work in the following
> manner. A single number type would be comprised of 3 different types (C
> union?). If the number can be represented as an integer, then it is an
> integer type. If the number cannot be represented as an integer, then it
> is a real/double type. If the number is too big for either an integer or a
> double, then it it a bignum (i.e., arbitrary precision) type.

What about complex numbers?

-- 
tom <telliamed@whoopdedo.org>