M
Mike
Hi there,
I am trying to convert a float/double number to a string using the
sprintf().
For example, if I have a float number 123.456, and I want to convert
it to "123.456". But with the sprintf() function, I always get
"123.456001". My question is how can I get the expected string without
those trailing 0s?
Thanks in advance.
Mike
I am trying to convert a float/double number to a string using the
sprintf().
For example, if I have a float number 123.456, and I want to convert
it to "123.456". But with the sprintf() function, I always get
"123.456001". My question is how can I get the expected string without
those trailing 0s?
Thanks in advance.
Mike