FloatingPoint

protocol FloatingPoint : Comparable, ExpressibleByIntegerLiteral, SignedNumber, AbsoluteValuable, Strideable
  • Mechanica

    Returns a new rounded FloatingPoint to specified number of decimal places.

    Declaration

    Swift

    public final func rounded(to decimalPlaces: Int) -> Self
  • Mechanica

    Rounds self to specified number of decimal places.

    Declaration

    Swift

    public mutating func round(to decimalPlaces: Int)
  • Mechanica

    Returns a new ceiled FloatingPoint to specified number of decimal places.

    Declaration

    Swift

    public final func ceiled(to decimalPlaces: Int) -> Self
  • Mechanica

    Ceils self to specified number of decimal places.

    Declaration

    Swift

    public mutating func ceil(to decimalPlaces: Int)
  • Mechanica

    Returns a new floored FloatingPoint to specified number of decimal places.

    Declaration

    Swift

    public final func floored(to decimalPlaces: Int) -> Self
  • Mechanica

    Floors self to specified number of decimal places.

    Declaration

    Swift

    public mutating func floor(to decimalPlaces: Int)