From 0c41879f4ea15210f74abea0344a05f8172a70bc Mon Sep 17 00:00:00 2001 From: wmorgan Date: Sat, 8 Dec 2007 22:15:30 +0000 Subject: [PATCH] remove num_digits git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@749 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/util.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/sup/util.rb b/lib/sup/util.rb index e2b82e1..e023917 100644 --- a/lib/sup/util.rb +++ b/lib/sup/util.rb @@ -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 -- 2.45.2