What it does
ReadPreferenceDouble takes key (a string) and defaultValue (a float), and answers a float.
Syntax
ReadPreferenceDouble(key string, defaultValue float) → floatParameters
| Name | Type |
|---|---|
| key | string |
| defaultValue | float |
Every form returns
float
Example · generated
DO Print(ReadPreferenceDouble("score", 1.0)) Sync()LOOPReadPreferenceDouble is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.