mirror of
https://github.com/neocities/neocities.git
synced 2025-07-02 17:13:26 +02:00
comparison to gcs and aws prices
This commit is contained in:
parent
c4e307fcf1
commit
371f8ec465
2 changed files with 32 additions and 4 deletions
|
@ -30,6 +30,14 @@ class Numeric
|
|||
"#{computed} #{unit}"
|
||||
end
|
||||
|
||||
def to_gigabytes_pretty
|
||||
self.to_gigabytes.to_s + ' GB'
|
||||
end
|
||||
|
||||
def to_gigabytes
|
||||
self / (1000**3)
|
||||
end
|
||||
|
||||
def to_comma_separated
|
||||
self.to_i.to_s.chars.to_a.reverse.each_slice(3).map(&:join).join(",").reverse
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue