quagmt / udecimal

A high-performance, high precision, zero allocation fixed-point decimal library for financial applications
https://quagmt.github.io/udecimal/
BSD 3-Clause "New" or "Revised" License
111 stars 4 forks source link

feat: add support for JSON null value #14

Closed mdawar closed 4 weeks ago

mdawar commented 4 weeks ago

Hey,

This pull request is a suggestion to add support for the JSON null value. This is needed to prevent parse errors when an API returns a null value for a udecimal.Decimal type.

Other libraries like https://github.com/shopspring/decimal already support this.

codecov[bot] commented 4 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.82%. Comparing base (5d3d0ff) to head (08d645b). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #14 +/- ## ========================================== - Coverage 94.55% 93.82% -0.73% ========================================== Files 5 5 Lines 1267 1653 +386 ========================================== + Hits 1198 1551 +353 - Misses 37 70 +33 Partials 32 32 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.