closest-fibonacci

Are you looking to find the closest Fibonacci number for any Fixnum? ‘Course you are!

Example

  1. Install the “closest-fibonacci” gem.

  2. Write some code! Try this in some ruby file:

    n = 143
    puts "Next Fibonacci number less than #{n} is " + n.closest_fibonacci.to_s
    
  3. That’s it!

Contributing to closest-fibonacci

  • You really don’t need to contribute to this project. Go play outside.

Copyright © 2011 Kevin J. Dickerson. See LICENSE.txt for further details.

Fibonacci computation code: en.literateprograms.org.