× 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.


  • Subject: Re: Floating Point Question
  • From: Jim Langston <jlangston@xxxxxxxxxxxxxxxx>
  • Date: Wed, 24 May 2000 10:17:29 -0700
  • Organization: Conex Global Logistics Services, Inc.

Here is a fully working boilerplate for atof:
When you compile this, make the default activation group *NO and
the bind directory QC2LE.  You might have problems with the printer
"PRINTER" which is just a generic printer file I made, 132 column.

0001.00  * Compile add the QC2LE binding Directory
0002.00 FPRINTER   O    F  132        PRINTER
0003.00
0004.00 D atof            PR             8F   ExtProc('atof')
0005.00 D String                          *   Value Options(*String)
0009.00
0013.00 D Float           S              8F
0022.00
0027.00 C                   Eval      Float = atof('1.23456e02')
0028.00 C                   Except    PrintFlt
0029.00 C
0030.00 C                   Eval      *INLR = *On
0030.01
0054.00 OPRINTER   E            PrintFlt
0055.00 O                                              'Float: '
0056.00 O                       Float

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.