P
Pete Sammet
As I found out by default Perl produces floating point number output as
123456.78
where ".78" is the fraction part of the number.
However in Europe another format is used:
123456,78
How exactly can I switch from the first to the second format?
I read a solution with
$myvar ~= tr/./,/;
but I don't want such a "afterwork" transformation.
The output should AUTOMATICALLY contain "," even during the calculation:
$num = 5/4;
print $num;
should show 1,25
Pete
123456.78
where ".78" is the fraction part of the number.
However in Europe another format is used:
123456,78
How exactly can I switch from the first to the second format?
I read a solution with
$myvar ~= tr/./,/;
but I don't want such a "afterwork" transformation.
The output should AUTOMATICALLY contain "," even during the calculation:
$num = 5/4;
print $num;
should show 1,25
Pete