Some bugfixes.

- Fixed a bug where "Infinity" is erroneously displayed when a division
by zero occurs. An invalid operation error now appears.
- Fixed a bug where a decimal is displayed when the answer is an
integer.