Table of Contents

BIN$

Returns a string containing a binary representation of the given number

Implemented by: MSX, Gambas

With variations:

Also written as:

Usage

In Gambas, a second, integer argument tells the number of bits to be returned, with padding 0s if needed.

Print Bin$(77)
Print Bin$ (77,16)

Variations

Examples

Comments

Similar keywords

In other languages...

References