Saturday, 29 August 2015

Number Bases

Since V1.14, TLCalc allows you to change number bases. TLCalc goes one further and allows you to use any number base from 2 to 36. Other calculators normally limit you to 2 (binary), 8 (octal), 10 (decimal) and 16 (hexadecimal). The other bases are rarely used however so most of you won't have any use for other bases.

To change the base, in the main calculator mode, go to the menu >> settings. The number base setting is near the bottom:


Some caveats to using number bases other than 10:
  • This is a relatively new feature and may have bugs
  • This setting only applies to the calculator mode. Base-10 is used in all other modes irrespective of this setting
  • When using bases higher than 10, numeric values starting with a letter must have 0 prefixed. This is to let TLCalc know you want the number value instead of the variable. Also be careful when using letter variables which can be mistaken for the numeric values. Use * to break up letters. E.g. 2*a ≠ 2a in bases higher than 10.
    Warning: TLCalc does not format algebraic expressions correctly all the time when the base is higher than 10. E.g. typing 2*a returns 2a which is interpreted as a number.
    In general, mixing of algebraic variables with bases other than 10 is discouraged.
  • Exponential multiplier E is unusable (i.e. the E in 5E2 = 5x102 = 500). As such, the range of calculation results available in modes other than base-10 is severely reduced. When the value is too large to be shown, OVERFLOW is returned.