I am trying to pass this composed variable with a float value:
j=1
DA1=178.2929838483883283
if (( $(bc <<< "$((DA$j)) > 150") )) && (( $(bc <<< "$((DA$j)) < -150") ))
then
D="T"
fi
But I get:
178.2929838483883283: syntax error: invalid arithmetic operator (error token is ".2929838483883283")
Aucun commentaire:
Enregistrer un commentaire