Scientific notation to decimal?
显示 更早的评论
I currently have a number that I want in decimal form not scientific form. I have
Savings made in dollars:
1.0418e+06
How do I get the 1.0418e+06 into decimal? Is there a function for this? In my script file I have
disp('Savings made in dollars: ' )
disp(savings)
So I was wondering if there was a function that i can enter in the disp(savings) bit to make my number a decimal?
I am very new to MATLAB so a basic explanation is much appreciated.
采纳的回答
更多回答(2 个)
format bank
price = 1.0418e+06
% >> 1041800.00
Azzi Abdelmalek
2013-8-4
a=1.0418e+06
out=sprintf('%10.2f',a)
类别
在 帮助中心 和 File Exchange 中查找有关 Multirate Signal Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!