Big Number Calculator

This works on the decimal digits themselves rather than on floating point numbers, so every digit of the answer is right. It adds, subtracts, multiplies and divides whole numbers of up to 200 digits, returning a quotient and an exact remainder rather than a rounded decimal, and it also raises a number to a power and works out a factorial up to 1000 exactly. Each answer is checked before it is shown, division in full by multiplying the quotient back, and the rest by casting out nines. Whole numbers only, with a leading minus allowed and spaces or commas ignored. An ordinary calculator keeps about fifteen significant digits and quietly rounds the rest, which is the problem this one exists to avoid.

Calculator Type
Whole numbers only, up to 200 digits. A leading minus is fine, and spaces or commas between digits are ignored.
Widget
A whole number of up to 40 digits, negative allowed.
A whole number from 0 to 2000. The answer is capped at 1500 digits.
Widget
From 0 to 1000. 1000! runs to 2,568 digits.
Widget