x = number_from_0_to_255 result = "" for n = 0 to 7 result = result + iif( bittest( x, n), "1", "0") next return result