fpconv.h 525 B

12345678910111213141516171819202122
  1. /* Lua CJSON floating point conversion routines */
  2. /* Buffer required to store the largest string representation of a double.
  3. *
  4. * Longest double printed with %.14g is 21 characters long:
  5. * -1.7976931348623e+308 */
  6. # define FPCONV_G_FMT_BUFSIZE 32
  7. #ifdef USE_INTERNAL_FPCONV
  8. static inline void fpconv_init()
  9. {
  10. /* Do nothing - not required */
  11. }
  12. #else
  13. extern inline void fpconv_init();
  14. #endif
  15. extern int fpconv_g_fmt(char*, double, int);
  16. extern double fpconv_strtod(const char*, char**);
  17. /* vi:ai et sw=4 ts=4:
  18. */