diff options
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.15 2000/09/29 12:42:13 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.16 2000/10/03 14:03:21 roberto Exp roberto $ |
3 | ** Limits, basic types, and some other "installation-dependent" definitions | 3 | ** Limits, basic types, and some other "installation-dependent" definitions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -42,7 +42,8 @@ | |||
42 | typedef LUA_NUM_TYPE Number; | 42 | typedef LUA_NUM_TYPE Number; |
43 | 43 | ||
44 | /* function to convert a Number to a string */ | 44 | /* function to convert a Number to a string */ |
45 | #define lua_number2str(s,n) sprintf((s), "%.16g", (n)) | 45 | #define NUMBER_FMT "%.16g" /* LUA_NUMBER */ |
46 | #define lua_number2str(s,n) sprintf((s), NUMBER_FMT, (n)) | ||
46 | 47 | ||
47 | /* function to convert a string to a Number */ | 48 | /* function to convert a string to a Number */ |
48 | #define lua_str2number(s,p) strtod((s), (p)) | 49 | #define lua_str2number(s,p) strtod((s), (p)) |