Skip to content

Type Conversion Operators

Type conversion operators cast a value from one type to another (string, integer, decimal) — they are not unit conversions. They are needed for the arithmetic and string-building path: comparison operators already coerce numeric strings ('11' == 11 is true), but arithmetic operators (+, %, **, …) reject strings, so a value such as a character taken from CHARS must be cast with TO_INT before it can be used in a calculation.