Bin()
Syntax
Result$ = Bin(Value.q [, Type])Description
Convert a quad numeric number into a string, in binary format.Example:
Debug Bin(32) ; Will display "100000" Debug Bin(1024*1024*1024*1024) ; Will display "10000000000000000000000000000000000000000"Note: If leading zero are needed in the output string, use the RSet() function as follows:Debug RSet(Bin(32), 16, "0") ; Will display "0000000000100000"The optional parameter 'Type' may be used, if the 'Value' should be treated as another type.
'Type' may be:#PB_Byte : The value is a byte number, ranging from 0 to 255 #PB_Ascii : The value is a ascii character, ranging from 0 to 255 #PB_Word : The value is a word number, ranging from 0 to 65536 #PB_Unicode: The value is a unicode character, ranging from 0 to 65536 #PB_Long : The value is a long number, ranging from 0 to 4294967296 #PB_Quad : The value is a quad number, ranging from 0 to 18446744073709551615See also Str(), Val() and Hex().
Supported OS
All