Package app.babylon.text
Class BigDecimals.PreparedDecimal
java.lang.Object
app.babylon.text.BigDecimals.PreparedDecimal
- Enclosing class:
BigDecimals
Prepared decimal text together with formatting flags discovered during
normalisation.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the original text used bracketed negatives.booleanReturns whether the original text used a percent sign.Returns the normalised decimal text ready for parsing.
-
Method Details
-
normalizedNumberText
Returns the normalised decimal text ready for parsing.- Returns:
- normalised decimal text
-
isPercent
public boolean isPercent()Returns whether the original text used a percent sign.- Returns:
truewhen the original value was a percentage
-
isNegativeBracket
public boolean isNegativeBracket()Returns whether the original text used bracketed negatives.- Returns:
truewhen the original value was wrapped in brackets
-