- Result
- 112345678901234567890
How it works

One final digit can matter
The integer 9007199254740993 leaves remainder 1 when divided by 2. Use the exact integer modulo mode for this check; converting a long integer through ordinary floating-point arithmetic can lose its final digit.
Can two adjacent integers survive rounding?

| Integer | Calculation | Exact difference |
|---|---|---|
| A 9007199254740992 | 9007199254740992 − 9007199254740991 | 1 |
| B 9007199254740993 | 9007199254740993 − 9007199254740992 | 1 |
Choosing integer or decimal precision
Very large integers and decimal expressions can require different arithmetic methods. Use exact integer operations when all inputs and the requested operation fit that mode. For decimal work, review the precision setting and the displayed limitations. A long result is not automatically an exact result, particularly when division creates a repeating decimal or the selected expression uses an approximate function.
Choose exact integer work or decimal precision explicitly
Calculate an expression uses a 64-significant-digit big-number context for arithmetic expressions. Exact integer operations uses integer arithmetic for GCD, LCM, modulo and factorial. Decimal arithmetic & precision lets you choose the number of decimal places in its output.
These modes solve different precision problems. A long expression result is not a claim of unlimited precision, while the exact-integer mode preserves its supported integer result without conversion through ordinary floating-point numbers.
Check a calculation beyond ordinary integer precision
Enter 9007199254740993+2 in the expression mode to obtain 9007199254740995. The starting integer is beyond the range in which every consecutive integer can be represented by ordinary JavaScript Number arithmetic. The big-number context retains these entered digits for this calculation.
For a decimal example, select division with A=1, B=7 and 6 decimal places. The output is 0.142857. It is a rounded display of a repeating decimal, not an exact terminating representation.
| Task | Input | Expected result |
|---|---|---|
| Large-integer addition | 9007199254740993+2 | 9007199254740995 |
| GCD | 48 and 180 | 12 |
| Factorial | 10 | 3628800 |
| Decimal division, six places | 1 ÷ 7 | 0.142857 |
Interpret modulo and factorial conventions
Modulo returns a nonnegative remainder relative to the magnitude of the divisor. For example, −17 modulo 5 gives 3 because −17 = (−4) × 5 + 3. This differs from a signed remainder convention used by some programming languages. A zero divisor is invalid.
Factorial uses the first integer only. It supports nonnegative integers through 1,000, including 0! = 1. Factorial is a product of positive integers, not repeated addition or exponentiation.
Distinguish significant digits from decimal places
Six decimal places means six digits after the decimal point; six significant digits counts meaningful digits from the first nonzero digit. Those controls can produce different rounded representations of a large or tiny number. Preserve the unrounded input until the final reporting step.
Expression length and exponent limits keep computation bounded. Scientific notation is useful for entering scale, but it does not remove precision limits. When an exact rational value such as 1/7 is required, keep the fraction rather than a finite decimal.
Calculate an expression: formula and assumptions
Evaluate parentheses and functions, then powers, multiplication/division, and addition/subtraction.
Use explicit multiplication, for example 2 * (3 + 4). ln is the natural logarithm and log is base 10. Angle units apply to trigonometric functions.
Exact integer operations: formula and assumptions
Use integer arithmetic and the Euclidean algorithm; n!=1×2×…×n.
Factorial uses only the first input and supports 0–1,000. Modulo returns a nonnegative remainder relative to |divisor|.
Decimal arithmetic & precision: formula and assumptions
Use higher-precision decimal arithmetic and round the displayed answer to the requested decimal places.
Up to 100 decimal places are supported. Inputs and exponents are bounded to keep calculations responsive.
Worked example
Using the Calculate an expression example:
- Angle unit
- Degrees
- Expression
- 12345678901234567890 + 10^20
Evaluate parentheses and functions, then powers, multiplication/division, and addition/subtraction.
Example result
Result: 112345678901234567890
These are illustrative inputs. Change the values to explore a different scenario.
Formula references
References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.
Common questions
Which mode should I use for precise decimal arithmetic?
Use Decimal arithmetic & precision for the supported basic operations and choose the displayed decimal places, up to 100.
Are all modes unlimited exact arithmetic?
No. Exact integer operations, higher-precision decimal operations and ordinary expressions have different capabilities and explicit size or precision limits.
Why does −17 modulo 5 give 3?
This mode chooses a nonnegative remainder relative to the absolute divisor: −17 = −4×5 + 3. Other tools may use a signed remainder convention.
Can a decimal result display 1/7 exactly?
No finite decimal can represent its infinite repeat exactly. Use the Fraction Calculator if the rational value itself must remain exact.
What is the factorial of zero?
It is 1. The exact-integer mode supports factorials of nonnegative integers within its stated range.
See our methodology and editorial policy.
