Discrepency between JPython and CPython

Venkatesh Prasad Ranganath rvprasad at cis.ksu.edu
Sun Apr 30 18:04:06 EDT 2000


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?  
If so, which of the implementation is buggy?  
I think it is JPython, may be I am wrong.

-- 
Venkatesh Prasad Ranganath

e-mail: rvprasad at cis.ksu.edu, rvprasad at ksu.edu

Address: Department of Computing and Information Science,
         234 Nichols Hall, 
         Kansas State University,
         Manhattan, KS 66506

Phone: (785)-532-6350 Extn: 48




More information about the Python-list mailing list