Garry's Mod Wiki

ConVar:GetFloat

  number ConVar:GetFloat()

Description

Attempts to convert the ConVar value to a float

Returns

1 number
The float value of the console variable.

If the value cannot be converted to a float, it will return 0.