Wire post by Jitendra Narayan

By Jitendra Narayan 4268 days ago
To round a floating-point value to a certain number of decimal places: $rounded = sprintf("%.2f", $unrounded); #Tipsoftheday #Perl