lua-users home
lua-l archive

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


Ralf HECKHAUSEN wrote:
>
> We want to run Lua on an machine without floating-point-unit
> and basically only need integer numbers. How much effort is
> it to switch the number type to long instead of double?

It's not that much work.  I posted a patch once on this list.
In case you can't find it: http://user.exit.de/froese/lua/lua-et1.diff.gz

> Is it possible to have a new user type float next to number with all
> standard operators? Did someone already implement this?

Possible?  Yes!  Already done with FPU?  Maybe.  Without FPU?  Don't
think so *g*

Ciao, ET.