Horje
perl format decimal 2 places not rounding Code Example
[Solved] - perl format decimal 2 places not rounding Code Example
Try following codes
perl format decimal 2 places not rounding
my $places = 2;
my $factor = 10**$places;
int(1.555 * $factor) / $factor;  # 1.55
Date: 2022-05-21 05:02:10
Category: perl
More for You