lua-users home
lua-l archive

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


>From lua-l@tecgraf.puc-rio.br  Tue Jul 11 11:30:37 2000
>From: Adolf Mathias <dolfi@zkm.de>
>
>If you have access to a reasonably complete math lib (exists even for
>Vicious C++ 6.0), you may use ldexp, which directly adds its second
>integer argument to the IEEE FP exponent of the first double argument
>and returns the result.

Lua's math library already has a binding to ldexp, so you can do this directly
in Lua.  Of course, your C library has to have ldexp...
--lhf