Author mark.dickinson
Recipients John.Yeung, docs@python, facundobatista, mark.dickinson, rhettinger, skrah, terry.reedy
Date 2015-11-28.14:29:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448720948.63.0.705145103221.issue25735@psf.upfronthosting.co.za>
In-reply-to
Content
[Terry]

>>> factorial(decimal.Decimal(5.2))
120

Yep, that's definitely wrong. If we want to behave the same way as for float, we should accept only integral Decimal values. (Though I'm not much of a fan of the float behaviour: I would have preferred math.factorial not to accept floats at all.)
History
Date User Action Args
2015-11-28 14:29:08mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, terry.reedy, facundobatista, skrah, docs@python, John.Yeung
2015-11-28 14:29:08mark.dickinsonsetmessageid: <1448720948.63.0.705145103221.issue25735@psf.upfronthosting.co.za>
2015-11-28 14:29:08mark.dickinsonlinkissue25735 messages
2015-11-28 14:29:08mark.dickinsoncreate