Float

struct Float

This extesion adds some useful functions to Float.

  • 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 Float 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() -> Float

    Return Value

    Returns the created random Float number.