]> git.cworth.org Git - sup/commitdiff
remove num_digits
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 8 Dec 2007 22:15:30 +0000 (22:15 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 8 Dec 2007 22:15:30 +0000 (22:15 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@749 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/util.rb

index e2b82e1f6cbbeeb321654c456b4a6d339fe2a838..e02391709855e07a0150c8c173506cb0ffaf6e51 100644 (file)
@@ -297,11 +297,6 @@ class Numeric
 end
 
 class Fixnum
-  def num_digits base=10
-    return 1 if self == 0
-    1 + (Math.log(self) / Math.log(10)).floor
-  end
-  
   def to_character
     if self < 128 && self >= 0
       chr