Hi there,
Yesterday, I encountered nim and today I tried a fibonacci sample from Rosetta Code
echo( Fibonacci(91))
which is what I would expect.
Now I changed int64 to uint64.
For number 93 Fibonacci(93) works fine and gives: 12200160415121876738.
For number 94 I get 1293530146158671551 which doesn't look right. I would have expected an OverflowError.
Is this a bug, or did I miss anything in my code?
-- Manfred
Aaah, understand.
I see it is even mentioned in the manual: "Unsigned operations all wrap around; they cannot lead to over- or underflow errors."
Next time I will try to find it in the docs before asking.
Thanks, Manfred