Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ceil/Floor

Status
Not open for further replies.

jmanj

Programmer
May 20, 2003
298
US
Gentlemen,

Again I'm in need of your wisdom. I could not find my old tapes which has all my cobol utilities such as date/time routines, various math computation(calculus & trigonometry) etc and I'm trying to re-create them from the start(wish I knew I would be doing cobol again). If you know SQR(sql language but better) there is a function called CEIL and FLOOR. CEIL converts a numeric value into the next highest given variable and FLOOR converts it into the next smaller value. Example any number converted into the next highest in increment of 1000 or any value, 500 becomes 1000, 1100 becomes 2000 etc.

I'm wondering if there is an equivalent function in cobol. Any help is greatly appreciated.
 
Check your manual/documentation for Intrinsic function

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top