Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

if float less than bash

#Just use bc command for operational calculation as follows:
if (( $(echo "$num1 > $num2" |bc -l) )); then
  …
fi
 
PREVIOUS NEXT
Tagged: #float #bash
ADD COMMENT
Topic
Name
2+6 =