Change input field from text to number

This will fix the constant NaN error when nothing is inputed. It will
now default to 0 should +, -, or * be pressed when there are no numbers
in the field.