how to calculate percentage from number
for example we set
number=248
and we want to know what is the 80% from $number
so how to calculate it in bash ?
expected output 198 ( exactly is 198.4 but we want to round down with floor )
Asked by yael
(13936 rep)
Jan 31, 2018, 08:56 PM
Last activity: May 9, 2024, 06:54 PM
Last activity: May 9, 2024, 06:54 PM