Double

struct Double

This extesion adds some useful functions to Double.

  • Gets the individual numbers, and puts them into an array. All negative numbers will start with 0.

    Declaration

    Swift

    var array: [Int] { get }
  • Creates a random Double number.

    Declaration

    Swift

    @available(*, deprecated: 3.2, message: "`random(﹚` is deprecated and will be removed in a future version of BFKit-Swift. Please use Swift 4.2 random functions.")
    static func random() -> Double

    Return Value

    Returns the created a random Double number.