Firetron’s Fib

1 143 Views No Comments 4 months ago
  • Returns the Fibonacci number at the specified index.

    Test Code:

    if not Load('done', false) then
    
      for i = 0, 30 do
        local fib = CC_Fib(i)
        Log(i..' is '..fib)
      end
    
      Save('done', true)
    
    end
    • This topic was modified 3 months, 2 weeks ago by Firetron. Reason: Removed output suggestions
    • This topic was modified 3 months, 2 weeks ago by Firetron. Reason: Removed input suggestions
    • This topic was modified 3 months, 2 weeks ago by Firetron. Reason: Made first twenty pre-calculated for efficiency
    • This topic was modified 2 months ago by Firetron. Reason: Updated to my latest standards
    HaasScript Code
    Sign in or Register to view
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free