Decimal to Binary Conversion
I recently found a short simple algorithm to convert decimal to binary. Alas, it requires raising a number to a power. In Basic Basic, this notation was n^p. I have checked the math operators over and over in PBP and could not find this operator. The ^ is a bitwise exclusive or.
I require a simple program to convert a 1 to 3 digit decimal number to an eight bit binary number.
Manual, Where are you, my sweet manual ????
Quote:
Originally Posted by
schlaray
I require a simple program to convert a 1 to 3 digit decimal number to an eight bit binary number.
Hi,
First: note 8 bits binary number has a 255 ( decimal ) limit ... not 999 !!!
Second : your pics only works ( internally ...) with binary ...
Soooo, you already have what you're looking for !!!
as Joe says, it's just a displaying question ...
Read Manual page 93+ for further info.
Alain
Decimal to Binary conversion
Pages 93 and 143 explains it all. Thank you all. Thats the way we speak in South Brooklyn.
Schlaray.