ARKI_MATH_E005

thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.

What happened

A value cannot be represented in the target type.

Fix

Use a `bigint` or `Decimal` input, or keep the value inside the safe integer and finite float range.

Check the fix

cd packages/math && bun run vitest run src/errors.test.ts

Run it after the fix. It passes when the fix worked.

Where it comes from

Package
@arki/math
Version
0.1.0 · next release candidate
Source
src/errors.ts:46