StandardError
Raised when attempting to divide an integer by 0.
42 / 0 #=> ZeroDivisionError: divided by 0
Note that only division by an exact 0 will raise the exception:
42 / 0.0 #=> Float::INFINITY 42 / -0.0 #=> -Float::INFINITY 0 / 0.0 #=> NaN
This page was generated for Ruby 2.3.1
Ruby-doc.org is provided by James Britt and Neurogami. Hack your world. Feed your head. Live curious.
Generated with Ruby-doc Rdoc Generator 0.35.0.