[bisq-network/bisq] Handle rounding of infinite Doubles (#5374)
cd2357
notifications at github.com
Mon Mar 29 19:46:16 CEST 2021
In certain situations we deal with infinite (or NaN) doubles. This causes issues when trying to instantiate a BigDecimal from it, which is an intermediary step in the process of rounding the double.
This commit checks for such non-finite doubles and throws a specific exception if their rounding is attempted.
Related to #5366, #5362
You can view, comment on, or merge this pull request online at:
https://github.com/bisq-network/bisq/pull/5374
-- Commit Summary --
* Handle rounding of infinite Doubles
-- File Changes --
M common/src/main/java/bisq/common/util/MathUtils.java (2)
M common/src/test/java/bisq/common/util/MathUtilsTest.java (14)
-- Patch Links --
https://github.com/bisq-network/bisq/pull/5374.patch
https://github.com/bisq-network/bisq/pull/5374.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5374
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20210329/0e778ca6/attachment.htm>
More information about the bisq-github
mailing list