× 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: Character to Numeric
  • From: boldt@xxxxxxxxxx
  • Date: Fri, 1 Dec 2000 11:33:35 -0500
  • Importance: Normal



Brad wrote:
>Read as much into my post as you like, Hans.  You're still
>wrong. Take this offline if you want to chat more.  If you
>have something personal against me (which it seems), the
>entire list doesn't need to be a part of it.

Brad:  Where was I wrong?  Was I wrong when I claimed that
your #CtoN procedure returns the wrong value when I fed it
the string '123456789123456789.123456789'?  Was I wrong to
claim that your return has the same behavior as "atof"?

Nothing personal here.  There may well be RPG programmers
out there using your procedure and expecting better
answers than what atof offers.  They need to know exactly
what the limitations of #CtoN are.  And YOU need to either
document those limitations or fix them.  (The fix is easy
and involves adding %INTH and (R) to one statement.)

Fact is, this is exactly how the "Open Source" community
works.  Someone publishes some code, others review it,
find bugs, and often suggest improvements.  That's why
code such as Linux and Apache have such high quality.  In
that community no one posts code publically without the
expectation that doing so will help the author to improve
the code.  I suggest reading up on the concept of "ego-
less programming", first popularized by Weinberg in his
1971 book "The Psychology of Computer Programming".

Have a nice weekend!


Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com

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


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.