Skip to content

Commit

Permalink
right, shell can't do float maths
Browse files Browse the repository at this point in the history
  • Loading branch information
brlcad committed Mar 13, 2024
1 parent b7711bc commit 72bd6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sh/sandbox/pametric_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ render ( ) {
hard=`echo 10k $edpx $gz 25.4 \* \* p | dc`
easy=`echo 10k $arpx $gz $gz \* \* p | dc`
# what's not hard is easy
if [[ $actual > $hard ]] ; then
if awk "BEGIN {exit !($actual > $hard)}" ; then
easy=`echo 10k $actual $hard - p | dc`
else
easy=0
Expand Down

0 comments on commit 72bd6c7

Please sign in to comment.