Closed fengyizhu closed 1 year ago
Certainly an option, thanks for that. We might be even able to avoid the try catch
clause entirely. There are some interesting answers to the question on how to check whether a BigDecimal
represents an integer:
https://stackoverflow.com/questions/1078953/check-if-bigdecimal-is-an-integer-in-java
That said, I see no issue with your solution.
console
This change is![Reviewable](https://reviewable.io/review_button.svg)