Giter VIP home page Giter VIP logo

Comments (5)

sccosel avatar sccosel commented on July 29, 2024

They haven’t yet discussed displaying numbers which are not whole numbers! If you want to make this work, try defining another variable called:
77 GROSS-PAY-DISPLAY PIC $$$$9.99.
And add these 2 statements after the COMPUTE of GROSS-PAY:
MOVE GROSS-PAY TO GROSS-PAY-DISPLAY
DISPLAY ‘Gross Pay Formatted: ‘ GROSS-PAY-DISPLAY.

Let us know how that goes!
ScottC

from cobol-programming-course.

sccosel avatar sccosel commented on July 29, 2024

@abickerton Did you try the suggestion? How did it go?

from cobol-programming-course.

abickerton avatar abickerton commented on July 29, 2024

@sccosel

Yes that works, But the question remains why the docs state the following.

PIC clause for a value such as $1,123.45 is coded as follows: PIC $9,999V99

Yet when it's used, the value shown is wrong (Gross Pay: $0,43700). I'm assuming it's something to do with integer & floating point but at this point I don't know if it's me or the documentation.

from cobol-programming-course.

sccosel avatar sccosel commented on July 29, 2024

@abickerton I assure you it's not you. The documentation is not wrong. Try to understand the explanation here: #44. Then let us know if you still have more questions!

from cobol-programming-course.

paulnewt avatar paulnewt commented on July 29, 2024

team is working on creating a md, mark down, doc in github for us to include all the excellent improvement suggestions .... we are waiting for md to be complete before we start hacking away at the doc - again - thanks for all the observations / contributions for improvement

from cobol-programming-course.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.