I have field in database type "float". When I insert number like 12345.27 , number is inserted 12345.3
Why it happened?
How is it defined exactly in the table?
Make sure to define it with two decimal places. It looks like it's rounding up (or your code is).
See manual page: http://dev.mysql.com/doc/mysql/en/numeric-type-overview.html#id3070819
.