Infinite value
Konrad Hinsen
hinsen at cnrs-orleans.fr
Wed Sep 29 04:25:22 EDT 1999
David YEUNG <dyeung at ust.hk> writes:
> Does python support Infinity value, like the 'Inf' in Matlab and C ?
No, and neither does C, at least not in a portable way. Inf and NaN
values are defined in IEEE arithmetic, which is now the most popular
standard, but not the only one. C does not require IEEE arithmetic
and therefore has no support for these values (you can't assign
Inf to a variable, for example). Since Python is written in portable
C, it can't do any better.
--
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69
Rue Charles Sadron | Fax: +33-2.38.63.15.17
45071 Orleans Cedex 2 | Deutsch/Esperanto/English/
France | Nederlands/Francais
-------------------------------------------------------------------------------
More information about the Python-list
mailing list