How to remove trailing zeros while display any floating point number ?
format short g;
X=input (‘any>’);
%if input is 93.93
disp (X);
It display 93.930
How to disp 93.93
I can’t remove
format short g;
Bcz of another mathematical reasons and calculations…format short g;
X=input (‘any>’);
%if input is 93.93
disp (X);
It display 93.930
How to disp 93.93
I can’t remove
format short g;
Bcz of another mathematical reasons and calculations… format short g;
X=input (‘any>’);
%if input is 93.93
disp (X);
It display 93.930
How to disp 93.93
I can’t remove
format short g;
Bcz of another mathematical reasons and calculations… zeros, format MATLAB Answers — New Questions