Decimal and Binary Conversions
Programs created 2/20/2013
Decimal to Binary (number → string)
D2B(number) - execute from Home!
FOR K FROM 1 TO L DO
IF 2^(L-K)≤D THEN
D2B(52) returns "110100"
D2B(131) returns "10000011"
Binary to Decimal (string → number)
Run this from Home! B2D(string of 1s and 0s). Attempting to run B2D from the program catalog will cause an error.
FOR K FROM 0 TO D-1 DO
B2D("11011") returns 27.
B2D("1010110000") returns 688.
This blog is property of Edward Shore. 2013
Saturday, March 16, 2013
Decimal/Binary Conversions for the HP 39gii
Eclipse On August 21, 2017 there will be a solar eclipse. Totality (where the moon completely covers the sun) will occur in the northern...
Casio fx-991EX Classwiz Review Casio FX-991EX The next incarnation of the fx-991 line of Casio calculators is the fx-991 EX. ...
TI-36X Pro Review This is a review of the TI-36X Pro Calculator by Texas Instruments. History Originally, this was the TI-30X Pro that w...
One of the missing features of the TI-82/83/84 family is the ability to convert between bases. Here are two programs in TI-Basic to help...