instance method
petabytes
Ruby on Rails 7.0.10
Since v3.0.20Signature
petabytes()
Returns the number of bytes equivalent to the petabytes provided.
2.petabytes # => 2_251_799_813_685_248
Source
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 54
def petabytes
self * PETABYTE
end
Defined in activesupport/lib/active_support/core_ext/numeric/bytes.rb line 54
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Numeric