- #1
NoobixCube
- 155
- 0
Hi all,
I am converting a double to a string. But in the following case:
-----------
format long
numnum=546.790;
num=num2str(numnum)
length(num)
---------------
when 'numnum' is converted to a string, the command truncates the number by leaving off the last digit, the zero. Is there a way to keep the zero on there when converting to a string?
I am converting a double to a string. But in the following case:
-----------
format long
numnum=546.790;
num=num2str(numnum)
length(num)
---------------
when 'numnum' is converted to a string, the command truncates the number by leaving off the last digit, the zero. Is there a way to keep the zero on there when converting to a string?