Discrepency between JPython and CPython
Moshe Zadka
moshez at math.huji.ac.il
Mon May 1 01:23:51 EDT 2000
On 30 Apr 2000, Venkatesh Prasad Ranganath wrote:
> Hi,
>
> Consider the expression str(1.14 * 200).
> In CPython it yields 228.0
> In JPython it yields 227.99999999999997
>
> Shouldn't this result in consistent values across variuos implementation?
No.
Don't use floats if you expect any kind of consistency.
java-floats-are-fscked-up-any-way-ly y'rs, Z.
--
Moshe Zadka <moshez at math.huji.ac.il>
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com
More information about the Python-list
mailing list