From 8dfebaa9f86687d41744fc518ae2d46a225b2d0e Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 29 Sep 2026 17:24:24 +0000 Subject: [PATCH] zero pad decimal part of average guesses An average of 3.04 was shown as 3.4 because the hundredths weren't padded. Pad with parameter expansion to keep the script bash-only. Co-Authored-By: Claude Opus 5.5 --- wordle | 1 + 1 file changed, 1 insertion(+) diff --git a/wordle b/wordle index b6a0574..46475e1 100755 --- a/wordle +++ b/wordle @@ -484,6 +484,7 @@ function update_stats() { integer_part=$(( result / 100 )) decimal_part=$(( result % 100 )) + [[ ${decimal_part} -lt 10 ]] && decimal_part="0${decimal_part}" AVERAGE="${integer_part}.${decimal_part}" fi