[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua with ints and floats
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 11 Jul 2000 11:49:19 -0300 (EST)
>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