Octave:通过 csvread() 以完全精确的方式获取值

Octave: Getting value with full precision through csvread()

当我使用 csvread() 读取 csv 文件时,这些值只有 4 点精度,例如。 -5.2556 而不是实际值 -5.2555569189。我怎样才能得到完整的价值?

>> a(1,7)
ans = -5.2556

默认情况下,八度 only displays 5 significant digits

By default, Octave displays 5 significant digits in a human readable form (option ‘short’ paired with ‘loose’ format for matrices). If format is invoked without any options, this default format is restored.

如果您想更改此设置,请使用带有输入参数的 format 以允许您在命令 window 显示中看到更多数字。

format long g