Floating-point decimal arithmetic.
Arithmetic context for floating-point decimal arithmetic.
Conversion of floating-point decimals to/from strings.
Decimal logical functions.
Floating-point decimal mathematical functions.
Rounding methods for floating-point decimal arithmetic.
Test routines for floating-point decimal arithmetic.
Returns a copy of the operand. The copy is unaffected by context and is quiet -- no flags are changed. Implements the 'copy' function in the specification. (p. 43)
Returns a copy of the operand with a positive sign. The copy is unaffected by context and is quiet -- no flags are changed. Implements the 'copy-abs' function in the specification. (p. 44)
Returns a copy of the operand with the sign inverted. The copy is unaffected by context and is quiet -- no flags are changed. Implements the 'copy-negate' function in the specification. (p. 44)
Returns a copy of the first operand with the sign of the second operand. The copy is unaffected by context and is quiet -- no flags are changed. Implements the 'copy-sign' function in the specification. (p. 44)
dup property
Returns true if this number's representation is canonical.
Returns true if this number is not an infinity or a NaN.
Returns true if this number is + or - infinity.
Returns true if the number is an integer (the fractional part is zero).
Returns true if this number is a quiet or signaling NaN.
Returns true if this number is negative. (Includes -0)
Returns true if this number is normal.
Returns true if this number is exactly one.
Returns true if this number is positive. (Excludes -0)
Returns true if this number is a quiet NaN.
Returns true if this number is a signaling NaN.
Returns true if this number is exactly (false, 1, 0).
Returns true if this number is a NaN or infinity.
Returns true if this number is subnormal.
Returns true if this number is a true value. Non-zero finite numbers are true. Infinity is true and NaN is false.
Returns true if this number is + or - zero.
Returns the representable number that is closest to the this number (but not this number) in the direction toward the argument.
Returns the largest representable number that is smaller than this number.
Returns the smallest representable number that is larger than this number.
Assigns a decimal number (makes a copy)
Assigns an BigInt value.
Assigns an boolean value.
Assigns an value.
Assigns a floating point value.
Assigns a string value.
Returns the result of the specified binary operation on this number and the argument.
Returns the result of performing the specified binary operation on this number and the argument.
Returns the result of performing the specified binary operation on this number and the argument.
Returns -1, 0 or 1, if this number is less than, equal to, or greater than the argument, respectively. NOTE: The comparison is made to the current precision.
Returns -1, 0 or 1, if this number is less than, equal to, or greater than the argument, respectively.
Returns true if this number is equal to the argument. Finite numbers are equal if they are numerically equal to the current precision. Infinities are equal if they have the same sign. Zeros are equal regardless of sign. A NaN is not equal to any number, not even to another NaN. A number is not even equal to itself (this != this) if it is a NaN.
Returns true if this number is equal to the argument.
Performs the specified binary operation on this number and the argument then assigns the result to this number.
Performs the specified binary operation on this number and the argument then assigns the result to this number.
Returns the result of the unary operation on this number.
mixin template to create a constant at the type precision, with an option to create an arbitrary precision constant.
Converts a number to an abstract string representation.
Converts a number to an "engineering notation" string representation.
Converts a number to a full string representation.
Converts a number to a "scientific notation" string representation.
Converts a number to the default string representation.
Returns true if this number is a false value. Finite numbers with zero coefficient are false. Infinity is true and NaN is false.
Returns 1.
A floating-point decimal number.
Returns true if the parameter is convertible to a decimal number.
Returns true if the parameter is a decimal number.
Copyright 2009-2016 by Paul D. Anderson.
Conforms to the General Decimal Arithmetic Specification, Version 1.70, (25 March 2009).
<a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>
Floating-point decimal number and decimal arithmetic library for D.
An implementation of the General Decimal Arithmetic Specification.