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) -> FloatDiscussion
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
decodeArray(ofObjCType:count:at:)decodeBool(forKey:)decodeBytes(forKey:returnedLength:)decodeBytes(withReturnedLength:)decodeData()decodeDouble(forKey:)decodeCInt(forKey:)decodeInteger(forKey:)decodeInt32(forKey:)decodeInt64(forKey:)decodeObject()decodeObject(forKey:)decodePoint()decodePoint(forKey:)decodePropertyList()