[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] From screen to calculation.

From: William M Klein
Subject: Re: [open-cobol-list] From screen to calculation.
Date: Fri, 6 Feb 2015 12:14:52 -0600

This is the rationale for the NumVal and NumVal-C intrinsic functions. Their
use should "solve" this problem completely.

-----Original Message-----
From: John Culleton [mailto:address@hidden 
Sent: Friday, February 06, 2015 8:42 AM
To: OpenCOBOL Mailing List
Subject: [open-cobol-list] From screen to calculation.

Many programs require data entry in the form of
dollars and cents, which data is later used in
calculations. The form in which dollars and cents 
is used in calculations is something like
-9999v99. But the form in which most people will
key it is 9999.99 which cannot be used in
calculations. There are many possible solutions.
One can ask the user to key in 999999 and then
immediately multiply by .01; the two fields
(dollars and cents) can actually be two fields
next to each other, or some other solution I
haven't thought of and so on. 

What is your preferred method? 

John Culleton
Wexford Press
Free list of books for self-publishers:
Updated PDF e-book: "Create Book Covers with
Scribus 1.4.5" coming soon at!

Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now.
open-cobol-list mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]