Adding comment.
This commit is contained in:
parent
574a0104d5
commit
bd8921a241
@ -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';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user