Comments (5)
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.
@abickerton Did you try the suggestion? How did it go?
from cobol-programming-course.
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.
@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.
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)
- Improvement: New Features of Enterprise COBOL v6.3
- Descargar Enterprise COBOL v6.3 HOT 1
- Website HOT 7
- Getting started Paragraph 3.2 Basic editing: line numbers are off HOT 1
- Readable and maintainable COBOL code
- Update course with survey result from COBOL WG HOT 6
- Unable to join Slack workspace. HOT 2
- Error in binary-ranges-3.png (Length and Range at S9(9) is wrong HOT 2
- Learning COBOL Programming with VSCode - Restricted acces to #openmainframeproject channel HOT 2
- No Labs or samples provided HOT 1
- Unable to join Slack - Account deactivated HOT 1
- Another COBOL Programming exercise for VSAM indexed file with alternate indices HOT 1
- COBOL compilation output file names are wrongly displayed.
- screen images in documentation use too much ink HOT 1
- API Output for COVID-19 COBOL Challenge is Offline
- Optimization possible in CBL0106.cbl
- lab or exercise with cobol-java-calling HOT 1
- Update content / screenshots for Zowe v3 Explorer
- Addition of content related to CI/CD by using Jenkins
- Create a static site for the book using Docusaurus
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cobol-programming-course.