closest-fibonacci
Are you looking to find the closest Fibonacci number for any Fixnum? 'Course you are!
Example
- Install the "closest-fibonacci" gem.
- Write some code! Try this in some ruby file: n = 143 puts "Next Fibonacci number less than #n is " + n.closest_fibonacci.to_s
- That's it!
Contributing to closest-fibonacci
- You really don't need to contribute to this project. Go play outside.
Copyright
Copyright (c) 2011 Kevin J. Dickerson. See LICENSE.txt for further details.
Fibonacci computation code: en.literateprograms.org.