Flooring a number in 4GL

 2 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Woozy
Veteran Member Send Private Message
Posts: 709
Veteran Member
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
Send Private Message
Posts: 3351
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 Send Private Message
Posts: 709
Veteran Member
DOH!  Geez...I should have thought of that.  A little tunnel-vision I guess. Thanks John.
Kelly Meade
J. R. Simplot Company
Boise, ID