Docs (85% documented)

Reference FloatingArithmeticType Protocol Reference

FloatingArithmeticType

protocol for rules of arithmetic operators in Floating values

  • Sum operator for floating type

    See more

    Declaration

    Swift

    func +(lhs: Self, rhs: Self) -> Self

    Parameters

    lhs

    left hand floating type

    rhs

    right hand flating type

    Return Value

    Sum of two floating type

  • Minus operator for floating type

    See more

    Declaration

    Swift

    func -(lhs: Self, rhs: Self) -> Self

    Parameters

    lhs

    left hand floating type

    rhs

    right hand floating type

    Return Value

    Differance of two floating type

  • Product operator for floating type

    See more

    Declaration

    Swift

    func *(lhs: Self, rhs: Self) -> Self

    Parameters

    lhs

    left hand floating type

    rhs

    right hand floating type

    Return Value

    Product of two floating type

  • Division operator for floating type

    See more

    Declaration

    Swift

    func /(lhs: Self, rhs: Self) -> Self

    Parameters

    lhs

    left hand floating type (Dividend)

    rhs

    right hand floating type (Divisor)

    Return Value

    Quotient of two floating type

  • Residue operator for floating type

    See more

    Declaration

    Swift

    func %(lhs: Self, rhs: Self) -> Self

    Parameters

    lhs

    left hand floating type (Diviend)

    rhs

    right hand floating type (Divisor)

    Return Value

    Remindor of two floating type