I have a string that represent a float:
echo $NUM
5.03
I need to multiply this number for MEGA. If I do it directly:
MEGA="1000"
result=$(($NUM*$MEGA))
I receive an error:
syntax error: invalid arithmetic operator (error token is ".03 * 1000")
bc, and also the search function at the top of the screen.