Str

Family: Core · 3 forms

What it does

Str takes valueInt (an integer), and answers a string. That is the first of 3 forms.

Syntax

1
Str(valueInt integer) → string
2
Str(valueFloat float) → string
3
Str(valueFloat float, decimals integer) → string

Parameters

NameTypeIn forms
valueIntinteger1
valueFloatfloat2, 3
decimalsinteger3

Every form returns

string

Example · generated

Form 1, the short one

DO  Print(Str(1))  Sync()LOOP

Form 3, with every argument

DO  Print(Str(1.0, 1))  Sync()LOOP

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

200 commands in Core