I am using MongoDB with PHP MongoDB driver manager. In my database, I have stored float values.
Save data type: Double.
Save value : Return values
1.0 : 1.000000000000548542525
1.23 : 1.235421620001245224544
1.2314 : 1.231447542145214265854
I cant round them in my PHP code, because I don't know it has 2 values after float point (.) or 4 values.
Inserting data is perfect, I check in MongoDB compass. Also on localhost, it is working ok. but return different float values on the live server