Fixing bug.

This commit is contained in:
Sergiotarxz 2023-11-14 12:01:44 +01:00
parent 9dacb0baa7
commit 599493ac7b

View File

@ -49,7 +49,7 @@ sub append_decene($number_ref, $return_ref) {
sub append_decene_thousands($number_ref, $return_ref) {
my $number = ${$number_ref};
my $thousand_decene_unit = int ($number / 1_000);
if (length ${return_ref} > 0 && $thousand_decene_unit < 1) {
if (length ${$return_ref} > 0 && $thousand_decene_unit < 1) {
${$return_ref} .= ' thousand';
};
return if ($thousand_decene_unit < 1);