Int

extension Int
  • An extension for a failable initialiser that initialises an Int from a Double.

    The initialiser will fail if the Double value is less than the minimum representable integer for an Int on the device or the Double value is more than the maximum representable integer for an Int on the device.

    Declaration

    Swift

    init?(doubleValue: Double)

    Parameters

    doubleValue

    A Double value.