mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix for comma separated with bignum
This commit is contained in:
parent
cb3a918aed
commit
892eca6c6a
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class Numeric
|
|||
end
|
||||
|
||||
def to_comma_separated
|
||||
self.to_s.chars.to_a.reverse.each_slice(3).map(&:join).join(",").reverse
|
||||
self.to_i.to_s.chars.to_a.reverse.each_slice(3).map(&:join).join(",").reverse
|
||||
end
|
||||
|
||||
def format_large_number
|
||||
|
|
Loading…
Add table
Reference in a new issue