0

Hi!

I would like to know what's the way to convert a double to its char[8] (even better string) representation, and vice versa (Char[8] to double)

i.e EXAMPLES -> 1.3e-15 (made up that number)

In VS debugger you can cast double variables with ",s" to get their representation as string which is useful..

Note: I am not after "1.32" -> 1.32

Many Thanks

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by firstPerson
0

>> this will convert 123.0 to "123.0" and that's not what I want
>>(first post) I would like to know what's the way to convert a double to its char[8] (even better string)

What else do you mean. stringstream can convert between double to string and string to double as well as other things.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.