add precision 6 to output strings
This commit is contained in:
parent
21e3ff5e74
commit
df30e34590
|
@ -134,9 +134,9 @@ func outputMatrix(matrix mat.Matrix) {
|
||||||
// for matlab and python formats, %#v outputs as matrix and %v is
|
// for matlab and python formats, %#v outputs as matrix and %v is
|
||||||
// oneline, but for standard format, it's the opposite, so we xor
|
// oneline, but for standard format, it's the opposite, so we xor
|
||||||
if (matlabFmt || pythonFmt) != oneline {
|
if (matlabFmt || pythonFmt) != oneline {
|
||||||
fmt.Printf("%#v\n", out)
|
fmt.Printf("%#.6v\n", out)
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("%v\n", out)
|
fmt.Printf("%.6v\n", out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue