KeyValues.GetFloat Method

Retrieves a floating point value from a KeyValues key.

float GetFloat(const char[] key, float defvalue)

Parameters

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.