Note: Float construction less accurate that string, Use string construction if possible
implements spec to-number
The result has the hook of the left hand side. Invalid operations call onInvalidOperation on the hook on the result and set the result's flag to true. Does not effect the left hand side of the operation.
The spec says that comparing NANs should yield NAN. Unfortunately this isn't possible in D, as the return value of opCmp must be [-1, 1].
Decimal strings
Public flags
Public flags
hook is a member variable if it has state, or an alias for Hook otherwise.
Public flags
Public flags
Public flags
Public flags
Behavior is defined by Hook. Number of significant digits is limited by Hook.precision.
Spec: http://speleotrove.com/decimal/decarith.html