int
int — converts to integer form.
int (s_exp)
s_expAny Gamma or Lisp expression.
An integer representation of the argument.
This function converts the argument to an integer. Floating point numbers are truncated. Binaries, hexadecimals and characters convert to decimal integers. In strings, if the first character(s) are numerical, they will be converted to an integer. Otherwise, a string will return zero. All other expression types generate zero.
Gamma>int(5.5);5Gamma>int(0xc);12Gamma>int(0b111011);59Gamma>int('h');104Gamma>int("63 hello");63Gamma>int("hello 63");0Gamma>int(random());0Gamma>