Click here to Skip to main content
15,880,651 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have problem with conversion, my string is "38.87" when I convert I get 38.87000001.. i WROTE:

C++
double d_minimoY = 0.0;

d_minimoX = _tstof(str_minimoX);


What I have tried:

I tried also with wtof and ttof but it's the same thing
Posted
Updated 8-Oct-20 0:22am
Comments
Rick York 8-Oct-20 11:09am    
No. You do not have a problem with your conversion. You have a display problem.

1 solution

 
Share this answer
 
Comments
Patrice T 8-Oct-20 7:39am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900