Package org.apache.struts2.util
Class BigDecimalBounds
java.lang.Object
org.apache.struts2.util.BigDecimalBounds
Bounds the number of integer digits emitted when a
BigDecimal is formatted, so the length of the output
follows the precision of the value rather than its scale.- Since:
- 7.5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCovers everydoublevalue in full - the widest isDouble.MAX_VALUEat 309 integer digits. -
Method Summary
-
Field Details
-
MAX_INTEGER_DIGITS
public static final int MAX_INTEGER_DIGITSCovers everydoublevalue in full - the widest isDouble.MAX_VALUEat 309 integer digits.- See Also:
-
-
Method Details
-
exceedsMaxIntegerDigits
- Returns:
truewhen the value is aBigDecimalthat would format to more thanMAX_INTEGER_DIGITSinteger digits and should be rendered withBigDecimal.toString()instead
-