Re: From screen to calculation.

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

 



Hi John

You probably have several decades with COBOl while I have 2 years part 
time but here goes anyways....

Can you use a PIC clause in the screen section to display the data as 
$1.00 etc but then move the data to a working storage field suitable for 
calculations?

-Patrick




On 15-02-06 09:41 AM, John Culleton wrote:
> 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?
>


------------------------------------------------------------------------------
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. http://goparallel.sourceforge.net/
_______________________________________________
open-cobol-list mailing list
open-cobol-list@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/open-cobol-list




[Index of Archives]     [Gcc Help]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Info]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux