ARKI_MATH_E001
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 string is not a number in the accepted syntax.
Fix
Pass a plain ASCII decimal string such as `'12.5'` or `'1e3'`, or parse locale text with `@arki/math/parse`.
Check the fix
cd packages/math && bun run vitest run src/errors.test.tsRun 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:18