Initializer

init(from:)

Creates a double from another double wrapped in a data value.

Declaration

init?(from dataValue: MLDataValue)

Discussion

Use this initializer to create a double by converting an MLDataValue with an underlying type of Double. You can confirm the data value’s underlying type by retrieving a non-nil value from doubleValue or by inspecting the type property.

Relationships

See Also

Using a Double as a Data Value

var dataValue: MLDataValue

The double wrapped in a data value.

static var dataValueType: MLDataValue.ValueType

The underlying type a double uses when it wraps itself in a data value.