Flooring a number in 4GL

 2 Replies
 0 Subscribed to this topic
 18 Subscribed to this forum
Sort:
Author
Messages
Woozy
Veteran Member
Posts: 709
Veteran Member
New Poster
New Poster
Congrats on posting!
Hi All. 

I'm working on a 4GL payroll custom calc that needs to take a value and floor it (i.e. round down to the nearest whole number).  How do I do this in 4GL/cobol?

If it matters, we're on DB2/Unix.

Thanks!
Kelly Meade
J. R. Simplot Company
Boise, ID
John Henley
Posts: 3364
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
Move varA defined as S9(12)V99 to varB defined as S9(12). The move varB back to varA. It will drop the cents. Is that what you mean? =
Thanks for using the LawsonGuru.com forums!
John
Woozy
Veteran Member
Posts: 709
Veteran Member
New Poster
New Poster
Congrats on posting!
DOH!  Geez...I should have thought of that.  A little tunnel-vision I guess.

Thanks John.
Kelly Meade
J. R. Simplot Company
Boise, ID