Flowdock

Float objects represent inexact real numbers using the native architecture’s double-precision floating point representation.

Floating point has a different arithmetic and is a inexact number. So you should know its esoteric system. see following:


When mathn is required, Float is changed to handle Complex numbers.

Constants

NAN = DBL2NUM(NAN)

INFINITY = DBL2NUM(INFINITY)

EPSILON = DBL2NUM(DBL_EPSILON)

MAX = DBL2NUM(DBL_MAX)

MIN = DBL2NUM(DBL_MIN)

MAX_10_EXP = INT2FIX(DBL_MAX_10_EXP)

MIN_10_EXP = INT2FIX(DBL_MIN_10_EXP)

MAX_EXP = INT2FIX(DBL_MAX_EXP)

MIN_EXP = INT2FIX(DBL_MIN_EXP)

DIG = INT2FIX(DBL_DIG)

MANT_DIG = INT2FIX(DBL_MANT_DIG)

RADIX = INT2FIX(FLT_RADIX)

ROUNDS = INT2FIX(FLT_ROUNDS)

Attributes

Show files where this class is defined (6 files)
Register or log in to add new notes.