diff options
Diffstat (limited to 'fpconv.h')
-rw-r--r-- | fpconv.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fpconv.h b/fpconv.h new file mode 100644 index 0000000..ea875c0 --- /dev/null +++ b/fpconv.h | |||
@@ -0,0 +1,14 @@ | |||
1 | /* Lua CJSON floating point conversion routines */ | ||
2 | |||
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 */ | ||
7 | # define FPCONV_G_FMT_BUFSIZE 32 | ||
8 | |||
9 | extern void fpconv_init(); | ||
10 | extern int fpconv_g_fmt(char*, double, int); | ||
11 | extern double fpconv_strtod(const char*, char**); | ||
12 | |||
13 | /* vi:ai et sw=4 ts=4: | ||
14 | */ | ||