Value type conversion primitives
Value type conversion primitives are listed as follows:
- inttostring/2—convert an integer value to a string value
- int_to_hex/2—convert an integer value to a string containing its hexadecimal notation
- int_to_hex/3—convert an integer value to a string containing its hexadecimal notation in a specified field width
- realtostring/2—convert a real value to a string value
- pointertostring/2—convert a pointer value to a string value
- string/2—convert any non list value to a string value
- stringtoint/2—convert a string value to an integer value
- stringtoreal/2—convert a string value to a real value
- stringtopointer/2—convert a string value to a pointer value
- int/2—truncate a numeric value to an integer value
- trunc/2—truncate a real number to an integer (symmetric around 0)
- round/2—convert a numeric value to an integer value by rounding the number
- real/2 or float/2—convert a numeric value to a real value
- code/2—retrieve the internal numeric representation of a character
- char/2—produce a string containing a single character with a specified numeric internal representation
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.