카테고리 없음

bash percent 구하기

위지원 2022. 11. 2. 12:16

$((100/1024*20))
1024중에 20이 몇 프로인가?

Bash - Calculate Percentage

I am trying to calculate on a Linux System. I do have two different numbers, defined with a variable $1= 1024 $2= 20 My task is now to calculate how many percent are 20 of 1024. The calculation ...

stackoverflow.com