AMOSi:Bin$

From Amiga Coding
Jump to: navigation, search

an example can be found on AMOSPro_Examples:Examples/H-5/Help_56.AMOS


Converts a decimal number into an appropriate string of BINary digits


These digits are limited to one of the two values "0" and "1"


=Bin$(number)

Returns the binary number using the fewest possible digits.


=Bin$(number,n)

Returns the first n digits in the number.