Type cast
October 17, 2018 ยท View on GitHub
Casts scalar data type to each other or fails:
integerfloatbinarylistatom- time stamp triple
{integer(), integer(), integer()}
The typecast interface re-uses a type field notation of printf format string due to historical reasons.
i- casts to signed decimal number (integer).f- casts to double in normal (fixed-point) notationx- casts to hexadecimal number using lower-case letterss- casts to "string", the library uses binary for string representationls- casts to wide "string"c- casts to list of characterslc- casts to wide "string"a- casts to existing atomatom- casts to atom, create new if do not existst- casts to time stamp triple