Matlab/Octave添加,丢失精度数字

Bry*_*ord 3 matlab octave

在Matlab/octave中,当我添加两个数字时,我丢失了一些数字.

>>> 23.0 + 0.65850
ans =  23.659
Run Code Online (Sandbox Code Playgroud)

我如何找到双倍的23.65850

car*_*aug 6

该数字用于显示目的.format如果要更改命令,请查看该命令.

octave> 23 + 0.65850
ans =  23.659
octave> format free
octave> 23 + 0.65850
ans = 23.7
octave> format long g
octave> 23 + 0.65850
ans =              23.6585
Run Code Online (Sandbox Code Playgroud)

看看help format其他选项,但请记住,这只会影响显示.你没有失去任何精确度.