Type Alias DecimalInput

DecimalInput: string | number | bigint

A decimal value crossing the engine boundary.

RECOMMENDED: pass a decimal string (for example "100.50" or "0.00847000"). Strings are lossless and the only safe form for full- or variable-scale instruments.

bigint is safe for exact integer values.

WARNING: number is an IEEE-754 double - values such as 0.1, 0.2, or magnitudes above Number.MAX_SAFE_INTEGER (9007199254740991) lose precision. Prefer string. It is accepted only as a convenience for small, exact integers.