Hi all,(adsbygoogle = window.adsbygoogle || []).push({});

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?

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB num2str

Loading...

Similar Threads for MATLAB num2str |
---|

MATLAB MATLAB: forces acting on an object |

MATLAB Matlab histogram |

MATLAB Sovling Bernoulli's differential equation in matlab? |

MATLAB Matlab-like software |

MATLAB Matlab data into bins |

**Physics Forums | Science Articles, Homework Help, Discussion**