Base Converter – TI-Nspire CX II Program

Base Converter running on a TI-Nspire CX II

Converts a number from any base to any other base. Binary and hex to decimal are the usual reason, but nothing stops you going from base 7 to base 13.

By Mauritz Blomqvist. Original release page

How to install it

  1. Download the program with the button above. You'll get a .tns file, the file type TI-Nspire calculators use.
  2. Open nspireconnect.ti.com in Chrome on a computer or Chromebook, and plug your calculator in with its charging cable.
  3. Choose File Transfer, then To Calculator, then From Computer, and pick the .tns file you just downloaded.
  4. When it lands, the calculator shows a prompt. Choose Open to jump straight into it.

It sits in My Documents afterwards, so you can reopen it any time.

TI's web app only supports the CX II and CX II CAS. If you have an original CX, or you already use the TI-Nspire Student Software, sending the file through that works the same.

Running it

Open the document, go to its calculator page, and call base2base with three things: the number, the base it is currently in, and the base you want. The author's example base2base("11147",8,10) reads 11147 as octal and returns 4711 in decimal.

Put the number in quotation marks

This is the one thing to get right. The number goes in as text and comes back as text. Leaving the quotes off happens to work for something like 11147, which is a valid number on its own, but not for a hex value with letters in it. Quote it every time and the question never comes up.

Very long numbers are fine

Binary gets long quickly, and this handles numbers far past the point where the calculator would normally switch to scientific notation and start rounding. Decimal points and E notation go through as well, so the input does not have to be a tidy integer.

It runs the same on a CX II and a CX II CAS, so there is no separate build to hunt down.

More TI-Nspire CX II Math Programs

← All TI-Nspire CX II math programs