From df30e345902605a7200304dde6b4b0da42b09c38 Mon Sep 17 00:00:00 2001 From: filifa Date: Sat, 10 May 2025 00:04:36 -0400 Subject: [PATCH] add precision 6 to output strings --- cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 8afa38e..1769bf6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -134,9 +134,9 @@ func outputMatrix(matrix mat.Matrix) { // for matlab and python formats, %#v outputs as matrix and %v is // oneline, but for standard format, it's the opposite, so we xor if (matlabFmt || pythonFmt) != oneline { - fmt.Printf("%#v\n", out) + fmt.Printf("%#.6v\n", out) } else { - fmt.Printf("%v\n", out) + fmt.Printf("%.6v\n", out) } }