Why does MATLAB only calculate to 4 significant digits?

17 次查看(过去 30 天)
I only see 4 significant figures:
>>2/3
ans =
0.6667

采纳的回答

Doug Hull
Doug Hull 2011-1-18
It doesn't. It uses full double-precision floating point numbers to calculate everything. By default it only prints a few decimal places to the screen. You can change this using the command:
>>format long
Type:
>>doc format
for more information.
[From the MATLAB FAQ of ancient times...]

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by