Class ApfloatCalculatorImpl

    • Constructor Detail

      • ApfloatCalculatorImpl

        public ApfloatCalculatorImpl()
        Default constructor.
    • Method Detail

      • parseInteger

        public java.lang.Number parseInteger​(java.lang.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 java.lang.Number parseDecimal​(java.lang.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 java.lang.String format​(java.lang.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.
      • promote

        protected java.lang.Number promote​(java.lang.Number x)
        Description copied from class: FunctionCalculatorImpl
        Promote a number to a more specific class.
        Specified by:
        promote in class FunctionCalculatorImpl
        Parameters:
        x - The argument.
        Returns:
        The argument, possibly converted to a more specific subclass.
      • fixedOrArbitraryPrecision

        private java.lang.Number fixedOrArbitraryPrecision​(java.util.function.Function<Apcomplex,​Apcomplex> fixedPrecisionFunction,
                                                           java.util.function.Function<Apcomplex,​Apcomplex> arbitraryPrecisionFunction,
                                                           java.lang.Number x)
      • fixedOrArbitraryPrecision

        private <T extends java.lang.Number,​U extends Apcomplex> java.lang.Number fixedOrArbitraryPrecision​(java.util.function.BiFunction<T,​U,​Apcomplex> fixedPrecisionFunction,
                                                                                                                  java.util.function.BiFunction<T,​U,​Apcomplex> arbitraryPrecisionFunction,
                                                                                                                  T x,
                                                                                                                  U y)