On Fri, 15 Feb 2008, Mark Dickinson wrote:
On Tue, Feb 12, 2008 at 1:52 AM, Raymond Hettinger [EMAIL PROTECTED] wrote:
Also, it would be useful to have a new method, float.is_integer(). This
would be better than the current approach where we make the
test: if x == floor(x).
How common is
Was some thought given to possibly adding these as
float methods instead of as separate functions?
float.isinf()
float.isnan()
Also, it would be useful to have a new method, float.is_integer(). This would
be better than the current approach where we make the
test: if x == floor(x).