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
HP Prime: Area by Quadratic Splines Introduction The program QUADSUM calculates the area under the curve described by the set o...
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...