This header defines the BigNumber intrinsic class.
Summary of Classes
Summary of Global Functions
Summary of Macros
Summary of Enums
Summary of Templates
insert commas to denote thousands, millions, etc
"Compact" format: use the shorter of the regular format and scientific notation. If the scientific notation exponent is less than -4 or greater than or equal to the number of digits after the decimal point, we'll use scientific notation; otherwise we'll use the plain format.
use European-style formatting: use a comma instead of a period for the decimal point, and use periods instead of commas to set off thousands, millions, etc
always show in exponential format (scientific notation, as in "1.0e20")
always show a sign in the exponent, even if positive
Keep trailing zeros. If there's a maxDigits value, this keeps enough trailing zeros so that the number of digits shown equals maxDigits. By default, trailing zeros after the decimal point are removed.
show a zero before the decimal point - this is only relevant in non-exponential format when the number is between -1 and +1
maxDigits counts only significant digits; leading zeros aren't counted against the maximum.
always show a decimal point
show a leading space if the number is positive
always show a sign, even if positive
(NumTypePInf | NumTypeNInf)no description available
Number type: "Not a number" (NaN). This indicates that the value is the result of a calculation with invalid input(s). Currently there are no BigNumber calculations that return NaNs, as all functions on invalid inputs throw errors instead. But it's possible to construct NaN value, such as by reading an IEEE 754-2008 NaN value from a file via unpackBytes().
0x0008no description available
Number type: ordinary number.
0x0020no description available
Number type: positive infinity, negative infinity. These indicate a value that overflowed the capacity of the BigNumber type, or a calculation that yields infinity (e.g., tan(pi/2)). Currently there are no BigNumber calculations that return Infinities, as all functions where an overflow is possible throw errors instead. But it's possible to construct an Infinity value, such as by reading an IEEE 754-2008 Infinity value from a file via unpackBytes().
Number type: zero, positive or negative. Mathematically, zero is neither positive nor negative, but the BigNumber type retains a sign for all values, even zeros. Negative zeros can come from calculations that yield negative results with absolute values too small for the internal representation. It's also possible to construct a negative zero, such as by reading an IEEE 754-2008 negative zero value from a file via unpackBytes().
(NumTypePZero | NumTypeNZero)no description available
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3