The string → float converter gets confused when encountering a comma used as a three digit separator.
For example, the following will actually print out 1.0
If your value is larger than or equal to 1000, there is a chance the string contains a comma.
As Nawrot suggested, print it out to be sure.