Round number to just 2 decimals cases
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I want to round A
A = [47.1847 18.78417 8.7849 3.3514]';
B = round(A,2)
C = floor(A*100)/100
so i can get
result = [ 47.18 18.78 8.78 3.35]
but when i use round or floor, i get the 3rd and 4th deciaml cases as 0
0 个评论
采纳的回答
madhan ravi
2018-12-7
A = [47.1847 18.78417 8.7849 3.3514];
result=fix(A*100)./100
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!