Big Number Calculator

Exact integer and decimal math with web3-ready outputs.

Results

Result -
Exact fraction -
Shifted (10^shift) -
Hex (shifted) -
Fit (shifted) -
Fit and hex outputs use the shifted value.

Settings

Examples

Functions

  • sqrt(x) — square root (perfect squares exact; otherwise rounded by max decimals).
  • abs(x) — absolute value.
  • min(a, b) — smaller of two values.
  • max(a, b) — larger of two values.
  • floor(x) — round down to integer.
  • ceil(x) — round up to integer.
  • round(x, n) — round to n decimal places.
  • mod(a, b) — modulo (integers only).
  • pow10(n) — 10^n (integer exponent).
  • pow2(n) — 2^n (integer exponent).
  • clamp(x, lo, hi) — clamp to bounds.
  • gcd(a, b) — greatest common divisor (integers only).
  • lcm(a, b) — least common multiple (integers only).