Classes |
struct | floatstruct |
Defines |
#define | NULLTERMINATED (-20) |
#define | UNORDERED (-2) |
#define | EXACT (-101) |
#define | INTQUOT (-102) |
#define | float_free(f) float_setnan(f) |
Typedefs |
typedef floatstruct * | floatnum |
typedef const floatstruct * | cfloatnum |
Enumerations |
enum | roundmode {
TONEAREST,
TOZERO,
TOINFINITY,
TOPLUSINFINITY,
TOMINUSINFINITY
} |
Functions |
void | floatnum_init () |
void | float_seterror (Error code) |
Error | float_geterror () |
int | float_getrange () |
int | float_setrange (int maxexp) |
int | float_getprecision () |
int | float_setprecision (int digits) |
char | float_isvalidexp (int exp) |
void | float_create (floatnum f) |
void | float_setnan (floatnum f) |
int | float_getexponent (cfloatnum f) |
int | float_getsignificand (char *buf, int bufsz, cfloatnum f) |
int | float_getlength (cfloatnum f) |
signed char | float_getsign (cfloatnum f) |
int | float_getscientific (char *buf, int bufsz, cfloatnum f) |
char | float_getdigit (cfloatnum f, int ofs) |
int | float_setsignificand (floatnum f, int *leadingzeros, const char *buf, int bufsz) |
void | float_setexponent (floatnum f, int exponent) |
void | float_setscientific (floatnum f, const char *buf, int bufsz) |
void | float_setsign (floatnum f, signed char s) |
void | float_setinteger (floatnum dest, int value) |
void | float_setzero (floatnum f) |
char | float_isnan (cfloatnum f) |
char | float_iszero (cfloatnum f) |
char | float_copy (floatnum dest, cfloatnum source, int digits) |
void | float_move (floatnum dest, floatnum source) |
char | float_neg (floatnum f) |
char | float_abs (floatnum f) |
signed char | float_cmp (cfloatnum val1, cfloatnum val2) |
char | float_round (floatnum dest, cfloatnum src, int digits, roundmode mode) |
char | float_int (floatnum f) |
char | float_frac (floatnum f) |
char | float_add (floatnum dest, cfloatnum summand1, cfloatnum summand2, int digits) |
char | float_sub (floatnum dest, cfloatnum minuend, cfloatnum subtrahend, int digits) |
char | float_mul (floatnum dest, cfloatnum factor1, cfloatnum factor2, int digits) |
char | float_div (floatnum dest, cfloatnum dividend, cfloatnum divisor, int digits) |
char | float_divmod (floatnum quotient, floatnum remainder, cfloatnum dividend, cfloatnum divisor, int digits) |
char | float_sqrt (floatnum value, int digits) |
char | _setnan (floatnum result) |
char | _seterror (floatnum result, Error code) |
char | _checknan (cfloatnum f) |
char | _setzero (floatnum x) |
Variables |
int | maxdigits |