I work with matlab.My answer is this
1.0e-13 *
-0.4710
0.0133
I tried format long g but this time answer is
-4.70969527418052e-14
I do not want number with e.How can fixed this?
I work with matlab.My answer is this
1.0e-13 *
-0.4710
0.0133
I tried format long g but this time answer is
-4.70969527418052e-14
I do not want number with e.How can fixed this?
You can use sprintf('%0.55f',your_var)
if you want. Change how many decimals you want printed by changing the number. Its 55 in this example.
I think this is a terrible idea. You are plotting raw floating point representation, it confuses you more than it helps. If you need accuracy in decimals of the order of e-20, you may be doing something wrong, or just not using the right tool.
I think before you continue you should have a read to the following post:
There is another possibility using the symbolic toolbox:
precision=64
vpa(sym(z,"f"),64)
The output is:
-0.00000000000004709999999999999620518877985217527098343349989395534294089884497