Remove this line. It is not needed in QB64.
Then change the function heading to:
In QB64 must use the type sigils to define the return type of a function.
In Julia I guess wrap "n" and "n-1" as "big(n)" and "big(n-1)". I had to use "big()" as suggested in the manual to get factorials larger than 23 or so, that didn't wrap around signed 64-bit integer range.
Code: (Select All)
Declare Function fakultaet(n As Integer) As _Integer64
Then change the function heading to:
Code: (Select All)
Function fakultaet&& (n As Integer)
In QB64 must use the type sigils to define the return type of a function.
In Julia I guess wrap "n" and "n-1" as "big(n)" and "big(n-1)". I had to use "big()" as suggested in the manual to get factorials larger than 23 or so, that didn't wrap around signed 64-bit integer range.