-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
10, 11
ADDITIONAL SYSTEM INFORMATION :
JDK 10 on Ubuntu 17.10
A DESCRIPTION OF THE PROBLEM :
We're using Float heavily in our project and refactoring everything to string when using BigDecimal is a big hassle, especially when the new code feels very heavy (e.g new BigDecimal(x.toString()) such that x is a Float).
Either having a constructor BigDecimal(Float) or the static BigDecimal.valueOf(Float), or even BigDecimal.valueOf(String) would help a lot.
JDK 10 on Ubuntu 17.10
A DESCRIPTION OF THE PROBLEM :
We're using Float heavily in our project and refactoring everything to string when using BigDecimal is a big hassle, especially when the new code feels very heavy (e.g new BigDecimal(x.toString()) such that x is a Float).
Either having a constructor BigDecimal(Float) or the static BigDecimal.valueOf(Float), or even BigDecimal.valueOf(String) would help a lot.