[issue13355] random.triangular error when low = high=mode

Serhiy Storchaka report at bugs.python.org
Mon May 26 10:35:02 CEST 2014


Serhiy Storchaka added the comment:

Note the catch on 2.7. triangular(10, 10.0) returns 10.0, but triangular(10, 10.0, 10.0) returns 10. If then you divide by the result...

I proposed change "return low" to "return low + 0.0".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13355>
_______________________________________


More information about the Python-bugs-list mailing list