FindApproximationError

public enum FindApproximationError : Error

Errors throwed by ContinuedFractionsSolver.findApproximation(of:differenceBelowOrEqual:)

  • Throwed if limit is zero or negative. Notice that a limit equal to zero, the approximation is the same provided value

    Declaration

    Swift

    case limitHasToBeBiggerThanZero
  • Throwed if value is zero or negative. Notice that the only possible approximation for zero is zero

    Declaration

    Swift

    case valueHasToBeBiggerThanZero