convert to binary form - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Conversion : convert/binary

convert/binary - convert to binary form

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


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam