Method GetFloat
GetFloat(String, Single)
Retrieves the float value of a corresponding key from the remote service, if one exists.
Declaration
public float GetFloat(string key, float defaultValue = 0F)
Parameters
Type | Name | Description |
---|---|---|
String | key | The key identifying the corresponding setting. |
Single | defaultValue | The default value to use if the specified key cannot be found or is unavailable. |
Returns
Type | Description |
---|---|
Single | A float representation of the key from the remote service, if one exists. If one does not exist, the defaultValue is returned (0.0F if none is supplied.) |