From 9681050a46bc681efba29706d3a86c366bcdfb1a Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Fri, 11 Apr 2025 09:29:13 -0600 Subject: [PATCH] non usd 3 decimal places --- cmd/cli/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/cli/main.go b/cmd/cli/main.go index d70c82a..868164d 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -201,8 +201,10 @@ func FPrintBalances(w io.Writer, linePrefix string, balances, cumulatives ledger for _, currency := range currencies { printableCurrency := currency + format := format if printableCurrency != "$" { printableCurrency += " " + format = strings.ReplaceAll(format, "%.2f", "%.3f") } if usdOnly && printableCurrency != "$" { continue