[issue34358] round() combined with product outputs ugly result

2018-08-08 Thread Steven D'Aprano
Change by Steven D'Aprano : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34358] round() combined with product outputs ugly result

2018-08-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is expected behaviour, the FAQ entry on floating point gives a good explanation about what's going on here: https://docs.python.org/3.7/tutorial/floatingpoint.html -- nosy: +ronaldoussoren ___ Python

[issue34358] round() combined with product outputs ugly result

2018-08-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34358] round() combined with product outputs ugly result

2018-08-08 Thread Sandu
New submission from Sandu : `from scipy import stats` `a = stats.norm.cdf(2.1882658846227234)` `round(a,4)` gives: `0.9857` `round(a,4)*100` one would expect to output 98.57. It returns: `98.570001` For comparison, if I multiply with 10 or 1000 the output is as expected. --