Performs a logical and of the arguments and returns the result. Implements the 'and' function in the specification. (p. 41)
Returns true if the argument is a valid logical decimal number. The sign and exponent must both be zero, and all decimal digits in the coefficient must be either '1' or '0'.
Returns true if the argument is a valid logical decimal number. The sign and exponent must both be zero, and all decimal digits in the coefficient must be either '1' or '0'.
Performs a logical shift of the argument by the specified number of decimal digits. Positive values of the second operand shift the argument to the left; negative values shift the argument to the right. If the argument is not a valid logical operand, or if the absolute value of the shift is greater than precision, an INVALID_OPERATION is signaled. Implements the 'shift' function in the specification. (p. 49)
Inverts and returns a decimal logical number. Implements the 'invert' function in the specification. (p. 44)
Performs a logical or of the arguments and returns the result. Implements the 'or' function in the specification. (p. 41)
Rotates the argument by the specified number of decimal digits. Positive values of the second operand rotate the argument to the left; negative values rotate the argument to the right. If the argument is not a valid logical operand, or if the absolute value of the rotation is greater than precision, an INVALID_OPERATION is signaled. Implements the 'rotate' function in the specification. (p. 47)
Performs a logical xor of the arguments and returns the result. Implements the 'xor' function in the specification. (p. 41)
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>
Decimal logical functions.
An implementation of the General Decimal Arithmetic Specification.