lua-users home
lua-l archive

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



I've used the attached file (hope it gets through?).


Attachment: flt2str.c
Description: Binary data



Jose Marin kirjoitti 29.6.2006 kello 22.01:

Hi.

I'm compiling Lua to use floats, altering the file
luser_number.h .

The macro lua_str2number uses strtod (returns a
double).

I could cast to (float)strtod, but I'm worried abou
performance.

Is there some fast way of convert a string to a float?

Thanks!




		
_______________________________________________________
Abra sua conta no Yahoo! Mail: 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz.
http://mail.yahoo.com.br/