FloatingPoint

public extension FloatingPoint
  • abs

    SwifterSwift: Absolute value of number.

    Declaration

    Swift

    var abs: Self { get }
  • SwifterSwift: Check if number is positive.

    Declaration

    Swift

    var isPositive: Bool { get }
  • SwifterSwift: Check if number is negative.

    Declaration

    Swift

    var isNegative: Bool { get }
  • SwifterSwift: Ceil of number.

    Declaration

    Swift

    var ceil: Self { get }
  • SwifterSwift: Radian value of degree input.

    Declaration

    Swift

    var degreesToRadians: Self { get }
  • SwifterSwift: Floor of number.

    Declaration

    Swift

    var floor: Self { get }
  • SwifterSwift: Degree value of radian input.

    Declaration

    Swift

    var radiansToDegrees: Self { get }