Phetrov Posted February 2, 2014 Share Posted February 2, 2014 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 More sharing options...
davej Posted February 2, 2014 Share Posted February 2, 2014 Maybe you can find it in the docs? http://www-01.ibm.com/support/docview.wss?uid=swg27009474 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now