diff options
Diffstat (limited to 'fpconv.h')
-rw-r--r-- | fpconv.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,9 +1,12 @@ | |||
1 | /* Lua CJSON floating point conversion routines */ | 1 | /* Lua CJSON floating point conversion routines */ |
2 | 2 | ||
3 | /* Buffer larger than required to store the largest %.14g number */ | 3 | /* Buffer required to store the largest string representation of a double. |
4 | * | ||
5 | * Longest double printed with %.14g is 21 characters long: | ||
6 | * -1.7976931348623e+308 */ | ||
4 | # define FPCONV_G_FMT_BUFSIZE 32 | 7 | # define FPCONV_G_FMT_BUFSIZE 32 |
5 | 8 | ||
6 | extern void fpconv_update_locale(); | 9 | extern void fpconv_init(); |
7 | extern int fpconv_g_fmt(char*, double, int); | 10 | extern int fpconv_g_fmt(char*, double, int); |
8 | extern double fpconv_strtod(const char*, char**); | 11 | extern double fpconv_strtod(const char*, char**); |
9 | 12 | ||