Clear Filters
Clear Filters

Numberof digits after decimal??

5 views (last 30 days)
ck
ck on 3 May 2016
Answered: the cyclist on 3 May 2016
When I open using float32 , I get around 4 values after the decimal . But I want around 10 or 15 digits after decimal?? how is it done? in following code below! g= fread(fid,'*float32', skip)

Answers (1)

the cyclist
the cyclist on 3 May 2016
The way a number is stored in memory is different from how it is displayed in the command window.
You can use the format command to change how the number is displayed.

Community Treasure Hunt

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

Start Hunting!