You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BigDecimal float/double conversion is a bit mixed. FBBigDecimalField and FBDecFloatField use equivalents of `BigDecimal.valueOf(double)` when setting double values, but FBFloatField and FBDoubleField use new BigDecimal(double) when getting a float/double as BigDecimal.
For consistency it might be better to use BigDecimal.valueOf(double) for both, although this may lead to a perceived loss of 'precision' for FBFloatField and FBDoubleField given the differences between the two methods of obtaining a BigDecimal from a floating point type.
The text was updated successfully, but these errors were encountered:
Submitted by: @mrotteveel
The BigDecimal float/double conversion is a bit mixed. FBBigDecimalField and FBDecFloatField use equivalents of `BigDecimal.valueOf(double)` when setting double values, but FBFloatField and FBDoubleField use new BigDecimal(double) when getting a float/double as BigDecimal.
For consistency it might be better to use BigDecimal.valueOf(double) for both, although this may lead to a perceived loss of 'precision' for FBFloatField and FBDoubleField given the differences between the two methods of obtaining a BigDecimal from a floating point type.
The text was updated successfully, but these errors were encountered: