Class BigDecimals.PreparedDecimal

java.lang.Object
app.babylon.text.BigDecimals.PreparedDecimal
Enclosing class:
BigDecimals

public static final class BigDecimals.PreparedDecimal extends Object
Prepared decimal text together with formatting flags discovered during normalisation.
  • Method Details

    • normalizedNumberText

      public String 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:
      true when the original value was a percentage
    • isNegativeBracket

      public boolean isNegativeBracket()
      Returns whether the original text used bracketed negatives.
      Returns:
      true when the original value was wrapped in brackets