[issue1182] Paticular decimal mod operation wrongly output NaN.

Hirokazu Yamamoto report at bugs.python.org
Thu Sep 20 18:26:58 CEST 2007


New submission from 
					Hirokazu Yamamoto
				:

Following code illegally print "NaN" on Python2.5.

from decimal import *
d1 = Decimal("23.08589694291355371979265447")
d2 = Decimal("2.302585092994045640179914546844")
print d1 % d2

Python2.6(trunk) print 0.06004601297309731799350900156

----------
components: Library (Lib)
messages: 56056
nosy: ocean-city
severity: normal
status: open
title: Paticular decimal mod operation wrongly output NaN.
type: behavior
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1182>
__________________________________


More information about the Python-bugs-list mailing list