negative result for fib(95)
Bug #984031 reported by
Matthias Brantner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Invalid
|
Critical
|
Paul J. Lucas |
Bug Description
declare function local:fib($n as xs:integer) as xs:integer
{
if ($n eq 0) then 0
else if ($n eq 1) then 1
else local:fib($n - 1) + local:fib($n - 2)
};
local:fib(95)
gives -49530535124290
To post a comment you must log in.
I thought we agreed a long time ago neither not to check for either overflows or underflows when ZORBA_WITH_ BIG_INTEGER= OFF.