BFraction

The BFraction structure

BigFrac.swift:8BFraction.md
struct BFraction

Overview

Please, see About BFraction

Constants

Properties

Constructors

  • init(BInt, BInt)

    Constructs a BFraction from numerator and denominator

  • init(BInt, Int)

    Constructs a BFraction from numerator and denominator

  • init(Int, BInt)

    Constructs a BFraction from numerator and denominator

  • init(Int, Int)

    Constructs a BFraction from numerator and denominator

  • init([BInt])

    Constructs a BFraction from a continued fraction - BInt version

  • init([Int])

    Constructs a BFraction from a continued fraction - Int version

  • init?(Double)

    Constructs a BFraction from a decimal value, nil if d is infinite or NaN

  • init?(String)

    Constructs a BFraction from a String representation, nil if x does not represent a decimal number

Conversion

Addition

Subtraction

Negation

Multiplication

Division

  • /(_:_:)-3syd2
  • /(_:_:)-36e09
  • /(_:_:)-f4k1
  • /(_:_:)-nbpu
  • /(_:_:)-6s4x9
  • /=(_:_:)-5kwdi
  • /=(_:_:)-9882z
  • /=(_:_:)-an0e
  • func invert() -> BFraction

    Invert self

Exponentiation

Modulus

Comparison

Rounding

Miscellaneous