| Operator | From | To | Returned Atom |
| string | any type | string | the string representation of the operand |
| int | int | int | the int operand |
| char | int | the operand casted to an int | |
| float | int | the operand casted to an int | |
| string | int | the operand converted to an int | |
| char | char | char | the char operand |
| int | char | the operand casted to a char | |
| float | textttchar | the operand casted to a char | |
| string | char | the operand converted to a char | |
| float | float | float | the float operand |
| char | float | the operand casted to a float | |
| int | float | the operand casted to a float | |
| string | float | the operand converted to a float | |
| oid | oid | oid | the oid operand |
| string | oid | the string operand converted to an oid | |
| ident | ident | ident | the ident operand |
| string | ident | the string operand converted to an ident |
| General Information | |
| Operator | string |
| Syntax | string expr |
| Type | unary |
| Operand Type | any type |
| Result Type | string |
| Function | returns the string representation of any atom |
| Expression Examples | |
| string 123.3 | "1203.300000" |
| string 'a' | "a" |
| string first(select Person) | "71211.13.1486847:oid" |
| string &alpha | "::alpha" |
| string list(1, 2, 3+2) | "list(1, 2, 5)" |
| string (list("hello", 30) + list(10)) | "list("hello", 30, 10)" |
| string (1+3) | "4" |
| string 1+3 | raises an error |
| General Information | |
| Operator | int |
| Syntax | int expr |
| Type | unary |
| Operand Type | int, char, float or string |
| Result Type | int |
| Function | returns the integer conversion or cast of the operand |
| Expression Examples | |
| int 123.3 | 123 |
| int 12 | 12 |
| int 'a' | 97 |
| int "123" | 123 |
| int ("123" + "12") | 12312 |
| int alpha | the value of alpha converted or casted to an integer |
| int list(1, 2, 3) | raises an error |
| General Information | |
| Operator | char |
| Syntax | char expr |
| Type | unary |
| Operand Type | int, char, float or string |
| Result Type | char |
| Function | returns the character conversion or cast of the operand |
| Expression Examples | |
| char 123.3 | { |
| char 'a' | 'a' |
| char alpha | the value of alpha converted or casted to a character |
| char "a" | 'a' |
| char "hello" | '^@' |
| char list(1, 2, 3) | raises an error |
| General Information | |
| Operator | float |
| Syntax | float expr |
| Type | unary |
| Operand Type | int, char, float or string |
| Result Type | float |
| Function | returns the float conversion or cast of the operand |
| Expression Examples | |
| float 123.0 | 123.0 |
| float 123.3 | 123.3 |
| float 'a' | 97.000 |
| float "123.0000000" | 123.0 |
| float ("123." + "12") | 123.12 |
| float "hello" | 0.0 |
| float alpha | the value of alpha converted or casted to a float |
| float list(1, 2, 3) | raises an error |
| General Information | |
| Operator | oid |
| Syntax | oid expr |
| Type | unary |
| Operand Type | oid or string |
| Result Type | oid |
| Function | returns the oid denoted by the string operand |
| Expression Examples | |
| oid "234.34.33:oid" | 234.34.33:oid |
| oid 234.34.33:oid | 234.34.33:oid |
| oid first(select Person) | returns the first person oid |
| oid 'a' | raises an error |
| General Information | |
| Operator | ident |
| Syntax | ident expr |
| Type | unary |
| Operand Type | ident or string |
| Result Type | string |
| Function | returns the identifier denoted by the string operand |
| Expression Examples | |
| ident "alpha" | alpha |
| ident "alpha#1x" | alpha#1x |
| ident "alpha" := 123 | 123, alpha has been assigned to 123 |
| valof &(ident "alpha") | 123 |
| ident 'a' | raises an error |