/

 

The manual

Self-training

Experimentation

Contact

 

Language

Other digital operations

Conversions

Round off a decimal number:

var Float f
var Int i
...
i := cast f Int

To convert a numeric value into a character string, we use the 'string' instruction:

var Float f
var Str s
...
s := string f

or

var Int i
var Str s
...
s := string i

The reverse conversion is done via the 'parse' instruction. See manipulation of strings.