binary - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


convert/binary

convert to binary form

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

convert(n, binary)

Parameters

n

-

decimal number

Description

• 

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.

Examples

convert123,binary

1111011

(1)

convert5,binary

−101

(2)

convert12.34,binary

1100.010101

(3)

convertevalf16π,binary,53

11.001001000011111101101010100010001000010110100010111

(4)

See Also

convert/base

convert/decimal

convert/hex

convert/octal