Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/utils/Formatter.java @ 9421:53e26734e4d2
Fixed NaN handling in salix historical scenarion calculation, added problem report
author | mschaefer |
---|---|
date | Fri, 17 Aug 2018 11:13:31 +0200 |
parents | 8ae7137b67d7 |
children | d194c5b24bf8 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/utils/Formatter.java Fri Aug 17 09:41:40 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/utils/Formatter.java Fri Aug 17 11:13:31 2018 +0200 @@ -387,7 +387,7 @@ /** * Decimal half even rounding of a flow depth value - * (throws an exception for NaN or Infinity) + * (ATTENTION: throws an exception for NaN or Infinity!) */ public static BigDecimal roundFlowDepth(final double value) { return BigDecimal.valueOf(value).setScale(FLOWDEPTH_MAX_DIGITS, RoundingMode.HALF_EVEN); @@ -399,7 +399,7 @@ /** * Decimal half even rounding of a W value - * (throws an exception for NaN or Infinity) + * (ATTENTION: throws an exception for NaN or Infinity!) */ public static BigDecimal roundW(final double value) { return BigDecimal.valueOf(value).setScale(WATERLEVEL_W_MAX_DIGITS, RoundingMode.HALF_EVEN);