Float
public extension Float
-
Return
self
asDouble
.Declaration
Swift
var asDouble: Double { get }
-
Returns
self
asInt
Declaration
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
self
asString
Declaration
Swift
var asString: String { get }
-
Returns
true
ifself
is ceil. Returnsfalse
otherwise.Declaration
Swift
var isCeil: Bool { get }
-
Undocumented
Declaration
Swift
func roundTo(precision: Int) -> Float