JsonFloat

Family: JSON · 2 forms

What it does

JsonFloat takes jsonValue (an integer), and answers a float. That is the first of 2 forms.

Syntax

1
JsonFloat(jsonValue integer) → float
2
JsonFloat(jsonValue integer, value float)

Parameters

NameTypeIn forms
jsonValueintegerall
valuefloat2

What each form returns

1JsonFloat(1)float
2JsonFloat(1, 1.0)nothing

Example · generated

Form 1, the command hands back the id

DO  Print(JsonFloat(1))  Sync()LOOP

Form 2, you choose the id yourself

JsonFloat(1, 1.0)DO  Sync()LOOP

JsonFloat 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.

36 commands in JSON