def commify(num)
      num.to_s =~ /([^\.]*)(\..*)?/
      int, dec = $1.reverse, $2 ? $2 : ""
      while int.gsub!(/(,|\.|^)(\d{3})(\d)/, '\1\2,\3'); end
      int.reverse + dec
    end
def commify(num)
      num.to_s =~ /([^\.]*)(\..*)?/
      int, dec = $1.reverse, $2 ? $2 : ""
      while int.gsub!(/(,|\.|^)(\d{3})(\d)/, '\1\2,\3'); end
      int.reverse + dec
    end
Breaks up a BigNum, FixNum or Float with commas
 e.g., 532566 => 532,566 and 79593255.66 => 79,593,255.66