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.
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.bigintis safe for exact integer values.WARNING:
numberis an IEEE-754 double - values such as0.1,0.2, or magnitudes aboveNumber.MAX_SAFE_INTEGER(9007199254740991) lose precision. Preferstring. It is accepted only as a convenience for small, exact integers.