[Top]
Tools
Tools.JSON
Tools.JSON.JSONObject
|
Method Tools.JSON.JSONObject()->optFloat()
- Method
optFloat
-
float optFloat(string key, float|void defaultValue)
- Description
-
Get an optional double associated with a key,
or NaN if there is no such key or if its value is not a number.
If the value is a string, an attempt will be made to evaluate it as
a number.
- Parameter key
-
A string which is the key.
- Parameter defaultValue
-
The default
- Returns
-
A double value object
|