Documentation of 'org.apache.commons.math.fraction.FractionConversionException' Java class
FractionConversionException
org.apache.commons.math.fraction

Class FractionConversionException

  • All Implemented Interfaces:
    java.io.Serializable, MathThrowable


    public class FractionConversionException
    extends ConvergenceException
    Error thrown when a double value cannot be converted to a fraction in the allowed number of iterations.
    Since:
    1.2
    See Also:
    Serialized Form
    • Constructor Detail

      • FractionConversionException

        public FractionConversionException(double value,
                                           int maxIterations)
        Constructs an exception with specified formatted detail message. Message formatting is delegated to MessageFormat.
        Parameters:
        value - double value to convert
        maxIterations - maximal number of iterations allowed
      • FractionConversionException

        public FractionConversionException(double value,
                                           long p,
                                           long q)
        Constructs an exception with specified formatted detail message. Message formatting is delegated to MessageFormat.
        Parameters:
        value - double value to convert
        p - current numerator
        q - current denominator

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.