I am trying to save a float value using hibernate into MS SQL Server. the value is 2.4 and when it get saved to the database, it becomes like this.
2.40000009536743
Here is the column definition in my entity class for this field.
@Column(name = "fTotalChipWeight")
private float totalChipWeight;
Could anybody advise me why this is happening this way
This is how the database column is defined