I noticed a problem (which I suspect is related to the introduction of integers in Lua53), and I’d like to know if this is ‘official’ behavior, or some sort of bug. The behavior can be seen in this small example:
if n == 0 then return 1 end
return fact(n-1) * n
Using fp parameter, return correct (?) resultUsing integer parameter, return 0 (zero) result!!!!
I don’t know what the root of this problem but if it happens to be related to integer overflow, should it be converted to floating point, and continue ‘crunching’ rather than give a completely wrong result?