Flooring a number in 4GL

Sort:
You are not authorized to post a reply.
Author
Messages
Woozy
Veteran Member
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
    Senior Member
    Posts: 3348
    Senior Member
      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
        DOH!  Geez...I should have thought of that.  A little tunnel-vision I guess.

        Thanks John.
        Kelly Meade
        J. R. Simplot Company
        Boise, ID
        You are not authorized to post a reply.