Float representation

Hello people,

I have an unusual problem. I have a C++ program which interacts with a backend(mysql database) on one side and a java program on other side. I was encountering problems when C++ program is interacting with the backend. I traced the problem and I found out that there is something wrong in SQL query formatting. The float numbers are being issued with commas, like 123783 is being issued to mysql as 123,782 which it is not able to recognize. So, I'm wondering how the float numbers are being represented in C++. Does C++ use commas by default? Can there be any probable cause for this?

Thanks and your help is highly appreciated,


You're getting formatted strings back, not floats.
Topic archived. No new replies allowed.