fib

The gem returns the closest fibonacci number (closest_fibonacci) for a Fixnum, i.e., the largest integer value from the Fibonacci Sequence smaller than the given integer.

E.g.

65.closest_fibonacci => 55
256.closest_fibonacci => 233
233.closest_fibonacci => 233

Contributing to fib

Copyright © 2011 Dan H. See LICENSE.txt for further details.