From 5d6c422e568abaf5429286931e586057fafe381a Mon Sep 17 00:00:00 2001
From: ida <ida@is.nota.live>
Date: Tue, 30 May 2023 20:03:06 -0700
Subject: [PATCH] round nubers to the hundredth

---
 pizza.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pizza.sh b/pizza.sh
index dd25b78..78877d2 100755
--- a/pizza.sh
+++ b/pizza.sh
@@ -37,8 +37,8 @@ function calcratio { # this is mildly hacky
 	for RATIO in $(grep 'ratios' -A 8 pizza.txt | sed /\\[*.\\]/d | cut -f 2); do # finding [ratios] +8 tailing lines, removing the first.
 		((LABEL++))
 		grep 'ratios' -A 8 pizza.txt | sed /\\[*.\\]/d | cut -f 1 | sed $LABEL'!d' # same deal but itterating through the labels
-		echo $RATIO*$SIZE | bc # actually print the calculated number for each label
-	done
+		echo "scale = 2; ($RATIO*$SIZE)/1" | bc -l # actually print the calculated number for each label
+	done # we have to divide by 1 to.get the base to reset to actually apply the scale
 	# cleanup
 	unset LABEL
 	unset RATIO