int_widths
Find which integer widths (i8..i64 or u8..u64) accommodate a value and get the wrapped result for those that overflow. Also flags values beyond 2^53 that cannot safely round-trip through JavaScript numbers or JSON floats.
Instructions
Which widths (i8..i64/u8..u64) hold N, and the wrapped value where they
do not. Flags anything past 2^53 as unable to round-trip through a JS
number or JSON float. int_widths(3000000000) shows the i32 wrap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |