Float

public extension Float
  • Return self as Double.

    Declaration

    Swift

    var asDouble: Double { get }
  • Returns self as Int

    Declaration

    Swift

    var asInt: Int? { get }

As String

  • Returns string representation rounded to tenth

    Declaration

    Swift

    var asCeilString: String { get }
  • Returns string representation rounded to tenth

    Declaration

    Swift

    var asTenthString: String { get }
  • Returns string representation rounded to hundredth

    Declaration

    Swift

    var asHundredthString: String { get }
  • Returns string representation rounded to thousands

    Declaration

    Swift

    var asThousandsString: String { get }
  • Returns self as String

    Declaration

    Swift

    var asString: String { get }

Other

  • Returns true if self is ceil. Returns false otherwise.

    Declaration

    Swift

    var isCeil: Bool { get }
  • Undocumented

    Declaration

    Swift

    func roundTo(precision: Int) -> Float