arnaudroger / SimpleFlatMapper

Fast and Easy mapping from database and csv to POJO. A java micro ORM, lightweight alternative to iBatis and Hibernate. Fast Csv Parser and Csv Mapper
http://simpleflatmapper.org
MIT License
435 stars 76 forks source link

Use BigDecimal.valueOf() instead of new for BigDecimalConverter #799

Open jmluy opened 2 years ago

jmluy commented 2 years ago

Use BigDecimal.valueOf() instead of new for BigDecimalConverter since using new on a double will not be correct as some values cannot be represented exactly.

Fixes #771