Float
public extension Float
-
Return
selfasDouble.Declaration
Swift
var asDouble: Double { get } -
Returns
selfasIntDeclaration
Swift
var asInt: Int? { get }
-
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
selfasStringDeclaration
Swift
var asString: String { get }
-
Returns
trueifselfis ceil. Returnsfalseotherwise.Declaration
Swift
var isCeil: Bool { get } -
Undocumented
Declaration
Swift
func roundTo(precision: Int) -> Float
Float Extension Reference