Rounding is handled differently depending on datatype in DV

Solution Verified - Updated -


  • We noticed that DV is returning inconsistent result for the rounding based on the data type used:
For example:

SELECT ROUND(CAST(0.565 as bigdecimal),2) as bd, ROUND(CAST(0.565 as double),2) as db

bd                db
---               ----
0.57            0.56


  • Red Hat JBoss Data Virtualization (DV) 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content