Message255542
[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.) |
|
Date |
User |
Action |
Args |
2015-11-28 14:29:08 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, terry.reedy, facundobatista, skrah, docs@python, John.Yeung |
2015-11-28 14:29:08 | mark.dickinson | set | messageid: <1448720948.63.0.705145103221.issue25735@psf.upfronthosting.co.za> |
2015-11-28 14:29:08 | mark.dickinson | link | issue25735 messages |
2015-11-28 14:29:08 | mark.dickinson | create | |
|