Initializer

init(_:)

Creates the closest representable value to the given integer.

Declaration

init(_ v: Int)

Parameters

value

The integer to represent as a floating-point value.

Relationships

From Protocol

See Also

Converting Integers

init<Source>(Source)

Creates a new value, rounded to the closest possible representation.