Re: Is 2.0 Integer or Float?

From: S. Robert J. [mailto:[email protected]]

I’d like to be able to do:

x = 2.0
assert x.integral?

class Numeric
def integral?
round == self
end
end