class Float alias :old_divide :/ def / (other) other == 0 ? nil : old_divide(other) end end