Operands are parsed directly as BigInt values; they are never converted through JavaScript Number. Division returns an integer quotient and remainder, not a rounded decimal. For example, −7 ÷ 3 gives quotient −2 and remainder −1, because −7 = (−2 × 3) − 1. GCD and LCM are nonnegative; this tool defines GCD(0, 0) = 0 and LCM(0, B) = 0. Python modulo uses floor division and follows the divisor’s sign; Euclidean modulo is nonnegative, including with negative divisors. All division and modulo modes reject a zero divisor. Supports bases 2–36 and at most 1,000 input digits per operand. Only the selected operation is calculated; no expression or JavaScript code is evaluated.
Big Integer Calculator
CalcsDecoded.com
Sum
9007199254740995
Exact integer result, displayed in decimal.
Inputs and result use exact integer arithmetic. Input base is shown in Additional settings; the main answer is decimal.
Operands are parsed directly as BigInt values; they are never converted through JavaScript Number. Division returns an integer quotient and remainder, not a rounded decimal. For example, −7 ÷ 3 gives quotient −2 and remainder −1, because −7 = (−2 × 3) − 1. GCD and LCM are nonnegative; this tool defines GCD(0, 0) = 0 and LCM(0, B) = 0. Python modulo uses floor division and follows the divisor’s sign; Euclidean modulo is nonnegative, including with negative divisors. All division and modulo modes reject a zero divisor. Supports bases 2–36 and at most 1,000 input digits per operand. Only the selected operation is calculated; no expression or JavaScript code is evaluated.
Examples and assumptions
Calculate with large whole numbers without passing them through floating-point Number values.
Add above the safe-integer limit
9007199254740995.
The operands are read as exact integers and two is added without rounding.
Supports integers, not decimal or fractional arithmetic. Each operand is limited to 1,000 digits.
The main answer is decimal. Input base is selected in Additional settings; binary, octal and hexadecimal results are also available.
Integer divide and Remainder truncate toward zero. Python modulo follows the divisor’s sign; Euclidean modulo is nonnegative. GCD(0,0) and LCM with a zero operand are defined as 0 here.
Calculation checks and references
Independent signed integer references cover all nine operations and the three signed quotient/remainder identities, large products, quotient/remainder conservation, zero divisors and nonnegative GCD/LCM.
Reference cases checked: . Checks are automated reference calculations; an independent professional review is not claimed.
References explain definitions, rules or context; they do not endorse CalcsDecoded.com. See our calculation methodology for the testing and updating standard.
Frequently asked questions
Does division return a decimal?
No. It returns the integer quotient truncated toward zero and a remainder. For -7 divided by 3, the quotient is -2 and remainder is -1.
Can I enter an expression or JavaScript?
No. Enter one integer in each operand field and select an operation. No code or expression is executed.
Which bases are supported?
Input bases 2–36 are available in Additional settings. The primary answer is decimal, with other formats in the result details.
Report a problem or send feedback
Report a problem or send feedback
Tell us what went wrong or how we can improve this calculator. Please don't include financial or other sensitive information.