bigint
An arbitrary-precision integer type in JavaScript and TypeScript, denoted by the n suffix. It represents large integers exactly without loss of precision, making it suitable for storing the smallest monetary units in financial applications.
Timeline (last 90 days)
JavaScript's bigint is an arbitrary-precision integer type that can perform exact addition, subtraction, and multiplication over any range without rounding errors, and is the recommended representation for amount fields in financial ledgers.
The example code specifies that each posting line's amount must be a positive integer (bigint, greater than 0), otherwise it is considered invalid.
All Facts (2)
JavaScript's bigint is an arbitrary-precision integer type that can perform exact addition, subtraction, and multiplication over any range without rounding errors, and is the recommended representation for amount fields in financial ledgers.
50%UnverifiedThe example code specifies that each posting line's amount must be a positive integer (bigint, greater than 0), otherwise it is considered invalid.
50%