mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
experiment with comma separated large view numbers rather than shortened
This commit is contained in:
parent
79fb01e6a7
commit
0c61010981
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ class Numeric
|
||||||
end
|
end
|
||||||
|
|
||||||
def format_large_number
|
def format_large_number
|
||||||
|
return self.to_s.reverse.gsub(/(\d{3})(?=\d)/, '\\1,').reverse
|
||||||
if self > 9999
|
if self > 9999
|
||||||
if self > 999999999
|
if self > 999999999
|
||||||
unit_char = 'B' #billion
|
unit_char = 'B' #billion
|
||||||
|
|
Loading…
Add table
Reference in a new issue