Constructs an exact decimal type from a built in number
Converts a string representing a number to an exact decimal.
Performs a binary operation between two decimals, or a decimal and a built in number.
For bool, follows the normal cast(bool) rules for floats in D. Numbers <= -1 returns true, numbers between -1 and 1 return false, numbers >= 1 return true.
-Infinity is less than all numbers, -NaN is greater than -Infinity but less than all other numbers, NaN is greater than -NaN but less than all other numbers and Infinity is greater than all numbers. -NaN and NaN are equal to themselves.
Performs a binary operation between two decimals, or a decimal and a built in number.
Modifies the decimal in place by adding or subtracting 1 for ++ and -- respectively.
Convenience function to reset all exceptional condition flags to false at once
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
A exact decimal type, accurate to Hook.precision digits. Designed to be a drop in replacement for floating points.
Behavior is defined by Hook. See the module overview for more information.