Required Initializerswift 6.2.4Swift

init(_:)

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

init(_ value: Double)

Parameters

value

A floating-point value to be converted.