[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: embedded system - no double
- From: daniel greene <dagr@...>
- Date: Thu, 09 Sep 2004 21:17:04 +0200
I wanna use lua in a embedded system project.
Therefore I don't wanna use the standard type for numbers
(double) - this needs too much performance.
Is there a global way to convert to another type like int?
I've tried to change this in lua.h.
/* type of numbers in Lua */
typedef int lua_Number; // changed to int
typedef LUA_NUMBER lua_Number;
It seems to be okay. Any comments?
Is there a better way to to this?
I know after that it's not possible to calculate. with float types.