Exception: FloatDomainError
- Inherits:
-
RangeError
- Object
- StandardError
- RangeError
- FloatDomainError
- Defined in:
- ext/enterprise_script_service/mruby/src/numeric.c,
ext/enterprise_script_service/mruby/mrblib/10error.rb
Overview
Raised when attempting to convert special float values (in particular infinite or NaN) to numerical classes which don’t support them.
Float::INFINITY.to_i
raises the exception:
FloatDomainError: Infinity