Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

vcf/JavaScriptKit/js-impl/jsdtoa.h File Reference


Defines

#define JS_DTOA_ERANGE   1
#define JS_DTOA_ENOMEM   2
#define DTOSTR_STANDARD_BUFFER_SIZE   26
#define DTOSTR_VARIABLE_BUFFER_SIZE(precision)   ((precision)+24 > DTOSTR_STANDARD_BUFFER_SIZE ? (precision)+24 : DTOSTR_STANDARD_BUFFER_SIZE)

Enumerations

enum  JSDToStrMode {
  DTOSTR_STANDARD, DTOSTR_STANDARD_EXPONENTIAL, DTOSTR_FIXED, DTOSTR_EXPONENTIAL,
  DTOSTR_PRECISION
}

Functions

 JS_strtod (const char *s00, char **se, int *err)
 JS_dtostr (char *buffer, size_t bufferSize, JSDToStrMode mode, int precision, double dval)
 JS_dtobasestr (int base, double d)
void js_FinishDtoa (void)

Define Documentation

#define DTOSTR_STANDARD_BUFFER_SIZE   26
 

#define DTOSTR_VARIABLE_BUFFER_SIZE precision   )     ((precision)+24 > DTOSTR_STANDARD_BUFFER_SIZE ? (precision)+24 : DTOSTR_STANDARD_BUFFER_SIZE)
 

#define JS_DTOA_ENOMEM   2
 

#define JS_DTOA_ERANGE   1
 


Enumeration Type Documentation

enum JSDToStrMode
 

Enumerator:
DTOSTR_STANDARD 
DTOSTR_STANDARD_EXPONENTIAL 
DTOSTR_FIXED 
DTOSTR_EXPONENTIAL 
DTOSTR_PRECISION 


Function Documentation

JS_dtobasestr int  base,
double  d
 

JS_dtostr char *  buffer,
size_t  bufferSize,
JSDToStrMode  mode,
int  precision,
double  dval
 

void js_FinishDtoa void   ) 
 

JS_strtod const char *  s00,
char **  se,
int *  err
 

   Comments or Suggestions?    License Information