convert/binary
convert to binary form
Calling Sequence
Parameters
Description
Examples
convert(n, binary)
n
-
decimal number
The function ``convert/binary'' converts a decimal number n to a binary number. The number may be either positive or negative, and may be either an integer or a floating-point number. In the case of a floating-point number, an optional third argument determines the total number of digits of precision in the answer (the default being Digits).
The binary number is returned as a base 10 number consisting of the digits 1 and 0 only.
convert⁡123,binary
1111011
convert⁡−5,binary
−101
convert⁡12.34,binary
1100.010101
convert⁡evalf16⁡π,binary,53
11.001001000011111101101010100010001000010110100010111
See Also
convert/base
convert/decimal
convert/hex
convert/octal
Download Help Document