× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi all--

I have a program with an internally described printer file.  I'm outputting
an array (23 elements, 6 long, 1 decimal pos) and am wondering if I can
define an edit word that will print the decimal point in a value less than
1 (i.e. 0.3) completely zero-supress zero values.  I currently have an edit
word defined as 'bbbb0.b-' (where b = blank).  This prints non-zero values
as desired, but also prints zero values as "0.0".  When I change the edit
word to 'bbbbb.0-', zeros do not print, values of 1 or greater print
correctly, but values less than 1 do not (0.3 prints as "3", no decimal
point).

If I have to, I guess I can define the array elements individually in the
array and test for zero values and condition the output in the O spec
(yuck!).  Do I have any other option?

Thanks in advance-

Terry Richardson
Vermont Information Processing, Inc.
terry@vtinfo.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.