fix: bug fix for precision handling - #328
Conversation
|
i have now updated the solution with the agreement of treating the numbers as u64, i64 and f64 based on our discussions. Also updated the tests now to show that we support i64 MIN > u64 max for literals, everything else falls back to f64 and the only ever produced is if a float is provided with a way too large exponent for example: So our documented range now is:
Here is the transaction proof for tesnet for how these values are respected:
So i believe we are all good here with the changes now contained in this PR. |

Purpose
Integer parsing between CBOR Positive(u64) and CBOR negative(u64) - added float check for finite numbers and documented api that 15-16 significant digit floats are advised to use Json string representation.
Changes
Added unit tests and further documentation for boundary number processing
Checklist
hard-to-understand areas.