Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.4
FloatDomainError
Raised when attempting to convert special float values (in particular Infinity or NaN) to numerical classes which don’t support them.
Example
Float::INFINITY.to_r #=> FloatDomainError: Infinity