OWBasic for Pocketviewer

Home INTRO Group DATATYPE Alphabetical Index

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:

tofrom
INT()FLOATSTRING
FLOAT()INTSTRING
STRING()INTFLOATBOOLEAN

There are more conversions from float to int: FLOOR, CEIL, ROUND

Home INTRO Group DATATYPE Alphabetical Index