Migrating Pology to Python 3

Karl Ove Hufthammer karl at huftis.org
Sat Oct 8 17:04:26 BST 2022


Adrian Chaves skreiv 08.10.2022 17:11:
>
> This is caused by 
> https://kingant.net/2019/01/rounding-numbers-in-python-2-and-python-3/
>
> When plural forms are found, the average is calculated and rounded. In 
> Python 2, round(2.5) is 3, in Python 3 round(2.5) is 2.
>
> I have no strong opinion on the matter, but I am slightly inclined to 
> keep the Python 3 behavior on this.
>
Yes, I see no reason not to use Python’s default rounding rules. But is 
there a reason that the average and not the sum is calculated 
(Chusslove)? After all, the sum *is* the number of words in the English 
source text (or translation).


-- 
Karl Ove Hufthammer



More information about the kde-i18n-doc mailing list