add precision 6 to output strings

This commit is contained in:
filifa 2025-05-10 00:04:36 -04:00
parent 21e3ff5e74
commit df30e34590
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}