Class ApfloatCalculatorImpl

    • Constructor Detail

      • ApfloatCalculatorImpl

        public ApfloatCalculatorImpl()
        Default constructor.
    • Method Detail

      • parseInteger

        public Number parseInteger​(String value)
        Description copied from interface: CalculatorImpl
        Parse a string to an integer number.
        Parameters:
        value - The string to parse.
        Returns:
        The number.
      • parseDecimal

        public Number parseDecimal​(String value)
        Description copied from interface: CalculatorImpl
        Parse a string to a floating-point number.
        Parameters:
        value - The string to parse.
        Returns:
        The number.
      • format

        public String format​(Number x)
        Description copied from interface: CalculatorImpl
        Convert a number to a String. The current formatting option is used.
        Parameters:
        x - The number.
        Returns:
        The String.