Adding comment.

This commit is contained in:
Sergiotarxz 2023-11-14 12:31:42 +01:00
parent 574a0104d5
commit bd8921a241

View File

@ -61,6 +61,8 @@ sub append_decene($number_ref, $return_ref) {
sub append_decene_thousands($number_ref, $return_ref, $there_is_hundred_thousands) {
my $number = ${$number_ref};
my $thousand_decene_unit = int ($number / 1_000);
# This is needed for numbers such as 1_100_001 that do not have thousand decenes
# but have thousand hundreds.
if ($there_is_hundred_thousands && $thousand_decene_unit < 1) {
${$return_ref} .= ' thousand';
};