Contents

decodeFloat(forKey:)

Decodes and returns a float value that was previously encoded with Encode(_:forkey:) 84cez or Encode(_:forkey:) 9xiiu and associated with the string key.

Declaration

func decodeFloat(forKey key: String) -> Float

Discussion

If the value was encoded as a double, the extra precision is lost. If the encoded real value does not fit into a float, the method raises an NSRangeException. Subclasses must override this method if they perform keyed coding.

See Also

Decoding General Data