From c3d796c8a9de0684b8441686e0e4a98a57f19ec5 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 12 May 2026 21:42:13 -0700 Subject: [PATCH] let direct indexing ratio be precise --- src/commands/audit.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/audit.zig b/src/commands/audit.zig index 1c4620d..16ab99f 100644 --- a/src/commands/audit.zig +++ b/src/commands/audit.zig @@ -1213,8 +1213,8 @@ fn displaySchwabSummaryRatioSuggestions( var sug_buf: [24]u8 = undefined; var drift_buf: [16]u8 = undefined; const cur_str = std.fmt.bufPrint(&cur_buf, "{d}", .{lot.price_ratio}) catch "?"; - const sug_str = std.fmt.bufPrint(&sug_buf, "{d:.6}", .{suggested_ratio}) catch "?"; - const drift_str = std.fmt.bufPrint(&drift_buf, "{d:.2}%", .{drift_pct}) catch "?"; + const sug_str = std.fmt.bufPrint(&sug_buf, "{d}", .{suggested_ratio}) catch "?"; + const drift_str = std.fmt.bufPrint(&drift_buf, "{d:.4}%", .{drift_pct}) catch "?"; try out.print(" {s:<16} ", .{lot.symbol}); try cli.printFg(out, color, cli.CLR_MUTED, "ticker {s:<6}", .{price_sym});