Fibonacci Numbers Calculator
How This Converter Works
Computes the Fibonacci value F(n), where F(0)=0 and F(1)=1, for whole-number inputs from 0 through 99. Blank input clears the result; negative, non-integer, or out-of-range values display Invalid input. Results use BigInt to preserve exact digits.
Formula or rule
F(0)=0, F(1)=1, F(n)=F(n-1)+F(n-2); the code iterates adjacent values for n >= 2.
Example
- Input
- 8
- Calculation
- 0, 1, 1, 2, 3, 5, 8, 13, 21
- Result
- 21