[Numpy-discussion] Re: numpy, overflow, inf, ieee, and rich , comparison

Pete Forman gsez020 at kryten.bedford.waii.com
Thu Oct 26 10:34:23 EDT 2000


Most of this thread is concerned with whether doing an operation with
two integers should produce a result which is not an integer.

What has not been mentioned is that the "2" and "3" are integers.  If
you want them to be floats they should be spelt "2." and "3." in the
same way that longs would be spelt "2L" and "3L".  It may be possible
to change the language so that unadorned numbers are floats and some
suffix is introduced for integers.  I don't think that you'd get many
takers for that.
-- 
Pete Forman                 -./\.- Disclaimer: This post is originated
Western Geophysical           -./\.-  by myself and does not represent
pete.forman at westgeo.com         -./\.-  the opinion of Baker Hughes or
http://www.crosswinds.net/~petef  -./\.-  its divisions.



More information about the Python-list mailing list