Summary
The useFormatXlm hook accepts both number and bigint inputs, but bigint handling has no specific test coverage. Very large bigint values that exceed JavaScript's safe integer range must be formatted without precision loss or scientific notation.
Scope
- Test a bigint value within safe integer range formats identically to the equivalent number
- Test a bigint value above
Number.MAX_SAFE_INTEGER formats without precision loss
- Test a bigint value of 0n returns
0.00
- Test a negative bigint (if supported) returns a negative formatted string or throws a clear error
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The
useFormatXlmhook accepts bothnumberandbigintinputs, but bigint handling has no specific test coverage. Very large bigint values that exceed JavaScript's safe integer range must be formatted without precision loss or scientific notation.Scope
Number.MAX_SAFE_INTEGERformats without precision loss0.00Acceptance Criteria
0.00ETA: 12 hours
Coordinate on Telegram