Scientific Calculator
Scripts tagged binary
- shiwei/bin2dec
written by ryan
x = bin2dec(b) interprets the binary string B and returns in X the equivalent decimal number. Note: The first char of b should not be ZERO because of the bug of Scientific Calculator
- shiwei/dec2bin
written by ryan
dec2bin(h) returns the binary representation of h as a string.