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:John@xxxxxxxxxxxxxxxx] Sent: Friday, February 06, 2015 8:42 AM To: OpenCOBOL Mailing List Subject: 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: http://wexfordpress.net/shortlist.html Updated PDF e-book: "Create Book Covers with Scribus 1.4.5" coming soon at http://www.booklocker.com/! ---------------------------------------------------------------------------- -- 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 ------------------------------------------------------------------------------ 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