Double

public extension Double
  • 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 }
  • Returns string representation rounded to provided precition

    Declaration

    Swift

    func asString(precition: UInt) -> String

As

  • Returns self as Date using timeIntervalSince1970 representation.

    Declaration

    Swift

    var asDate: Date { get }
  • Returns self as Int if possible

    Declaration

    Swift

    var asInt: Int? { get }

Other

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

    Declaration

    Swift

    var isCeil: Bool { get }