I am trying to input values in sql server database using setfloat
jtdsproc.setFloat(12, nb.getOpenAmount());
My amount is 1.20 But in database it is entering 1.199999523 I just want to enter till 2 digits but this set float making Problem How to enter float value so that it goes till two decimal .
I am Using Jtds Library to connect to sql server