What is the equivalent of .ToString("00")
in C++?
I'm getting an error stating that
left of '.ToString' must have class/struct/union
1> type is 'double'
Update: Thanks for the replies, i'm having another similar issue now //inorder to get //.ToString("00.00000") i did the following
memset(buf, 0, sizeof(buf));
sprintf_s(buf, "%02.7f",latm); //.7 to match heremisphere
std::string latm_str = buf;
i realised that the %02 doesnt have any effects, example when i get a 7.0, the result is 7.0000000 rather than the desired 07.0000000, anything wrong here?