Contents

decodeDouble(forKey:)

Decodes a double-precision floating-point value associated with a given key.

Declaration

func decodeDouble(forKey key: String) -> Double

Parameters

  • key:

    A key in the archive within the current decoding scope. key must not be nil.

Return Value

The double-precision floating-point value associated with the key key. Returns 0.0 if key does not exist.

Discussion

If the archived value was encoded as single-precision, the type is coerced.

See Also

Related Documentation

Decoding Data