BINARY
BINARY returns the binary value of x, with a precision specified by p and q. The result has the mode and scale of x.
Abbreviation: BIN
- x
- Expression.
- p
- Restricted expression. Specifies the number of digits to be maintained throughout the operation; it must not exceed the implementation limit.
- q
- Restricted expression. It specifies the scaling factor of the result. For a fixed-point result, if p is given and q is omitted, a scaling factor of zero is the default. For a floating-point result, q must be omitted.
If both p and q are omitted, the precision of the result is determined from the rules for base conversion.