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

Recommended Answers

All 3 Replies

>> 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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.