Got the integer and decimal cases to work.

the digit and decimal objects where arrays so they need to be combined
into a string before calling parseInt.  Also calling parseInt on a
decimal will be an integer not a real number.