Library globals

Function globals . bits . string

View source

returns number <n> as bit string, zero-padded to <len> digits:
bits.string(6)     ->       "110"
bits.string(6, 8)  ->  "00000110"

Parameters

n

len
optional