Jump to content

Rounding


Phetrov

Recommended Posts

Hi guys, looking for some help with rounding up a decimal. I am working on DB2 9.7.

 

The following is the query i have used to receive the correct decimal, but i need the decimal to round up (e,g. 74.70 should be 75 not 74)

 

, RS1.TOTAL_PNTS

, RS1.SOLD_PNTS

, RS1.TOTAL_MAT

, DECIMAL (

RS1.SOLD_PNTS*1.00

/ RS1.TOTAL_PNTS*1.00

, 10, 5

) * 100

, RS1.TOTAL_PNTSVAL

, RS1.SOLD_PNTSVAL

, DECIMAL (

RS1.SOLD_PNTSVAL*1.00

/ RS1.TOTAL_PNTSVAL*1.00

, 10, 5

) * 100

 

Thanks

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...