String Library - HACKT CHPSIM Manual
Description: HACKT CHPSIM Manual

Next: I/O Library, Previous: Conditionals Library, Up: Function Descriptions

#### 6.1.3 Strings

— Fucntion: strcat args...
— Fucntion: sprint args...
— Fucntion: tostring args...

> Stringify all args and concatenate into a single string (returned). This can be used to convert argument types to a string. Does not include terminating newline.

— Function: strtoz str

> Convert string str to an integer. Throws run-time exception if conversion fails.

— Function: strtob str

> Convert string str (0 or 1) to a boolean. Throws run-time exception if conversion fails.

— Function: strtor str

> Convert string str to real (floating-point) value. Throws run-time exception if conversion fails.