-1

I'm using H2 Database and when double and float values inserted into my H2 DB, the loss of precision is occurred and, for example, 1.7999999523162842 displayed instead of 1.8.

Jose Luis
  • 994
  • 1
  • 8
  • 22
J-Alex
  • 6,881
  • 10
  • 46
  • 64

1 Answers1

2

Declaring variable type as BigDecimal instead Double or Float solved issue.

J-Alex
  • 6,881
  • 10
  • 46
  • 64