Datatype Conversions
If the type of a given value doesn't match the required one OWBasic performs an implicitly conversion in the following cases:
int -> float
char -> string
An explicit conversion is possible using datatype identifiers like a function: STRING(), FLOAT(), INT(). The following conversions are possible:
| to | from | | |
| INT() | FLOAT | STRING | |
| FLOAT() | INT | STRING | |
| STRING() | INT | FLOAT | BOOLEAN |
There are more conversions from float to int: FLOOR, CEIL, ROUND
|