"$int(N)
Returns the integer part of a floating point number with no rounding." in help mIRC.
$int(1.999999999999) return 1
However
$int(1.9999999999999) return 2
This occurs with everyone above 12 digits.
Would not the correct one always return 1, regardless of the number of decimal digits?
Example: alias _int if ($1 isnum) return $gettok($1,1,46)
$_int(1.999999999999) return 1
$_int(1.9999999999999) return 1
In which, regardless of the number of decimal digits, it will always return the whole part without rounding.
Last edited by rockcavera; 21/12/16 05:29 AM.