Round Print To Two Decimal Places Using Variable Num

[Solved] Round Print To Two Decimal Places Using Variable Num | Perl - Code Explorer | yomemimo.com
Question : Round/print to two decimal places using variable 'num' followed by newline

Answered by : hanif-abdulkareem

printf "%.2f\n" $num

Source : https://linuxhint.com/round-two-decimal-places-bash/ | Last Update : Wed, 14 Sep 22

Answers related to round print to two decimal places using variable num

Code Explorer Popular Question For Perl