> 
> **Possible Duplicate:**  
> 
> [Precision of Floating Point](https://stackoverflow.com/questions/872544/precision-of-floating-point)  
> 
> [Can you compare floating point values exactly to zero?](https://stackoverflow.com/questions/2378628/can-you-compare-floating-point-values-exactly-to-zero)  
> 
> [floating point issue](https://stackoverflow.com/questions/3733071/floating-point-issue) 
> 
> 
> 

In my c++ code I have the string: "0.55".

And I want to convert it to float value "0.55", but all function I used give me the float value "0.55000001".

Why? How can I take the clear value?

Last version of code is:

```
wstring s = L"0.55";
float f = stof(s);

```