KvGetFloat Function

Retrieves a floating point value from a KeyValues key.

float KvGetFloat(Handle kv, const char[] key, float defvalue)

Parameters

Handle kv

KeyValues Handle.

const char[] key

Name of the key, or NULL_STRING.

float defvalue

Optional default value to use if the key is not found.

Return Value

Floating point value of the key.

Errors

Invalid Handle.