FindApproximationError
public enum FindApproximationError : Error
Errors throwed by ContinuedFractionsSolver.findApproximation(of:differenceBelowOrEqual:)
-
Throwed if
limit
is zero or negative. Notice that alimit
equal to zero, the approximation is the same providedvalue
Declaration
Swift
case limitHasToBeBiggerThanZero
-
Throwed if
value
is zero or negative. Notice that the only possible approximation for zero is zeroDeclaration
Swift
case valueHasToBeBiggerThanZero