How to initialize in 7 decimal places

Hi all,
I want to initialise x = 1.5638287 (7 decimal places)
However, x is only initialised up to 4 decimal places (1.5638)
Is it possible to specify any symbols so that I can use the 7 decimal place value for x?
Thanks.

 Accepted Answer

Don't confuse what is stored with what is displayed. Try
format long

Categories

Tags

Community Treasure Hunt

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

Start Hunting!