length.rb

Path: lib/core/facets/integer/length.rb
Last Update: Tue Mar 30 10:17:47 -0600 2010

Calculate the number of digits in an integer.

1.length #=> 1 10.length #=> 2 100.length #=> 3

CREDIT: Victor H. Goff III

[Validate]