Page 1 of 1

[Solved]Evaluating number using 'int' ?

Posted: 01 May 2020, 11:46
by qq6346144
error in 5: Unrecognized --> int <-- Sub-Routine

automacro num99 {
console /num(\d+)~(\d+)/
call {
$numone = @eval ($.lastMatch1 + $.lastMatch2)
$numtwo = @eval ($numone / 2)
$numthree = int(@eval($numtwo))
do talk num $numthree
}
}

how to write?

Re: error in 5: Unrecognized --> int <-- Sub-Routine

Posted: 06 May 2020, 04:38
by c4c1n6kr3m1
@eval(int($numtwo))