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




On Thu, 14 Feb 2013 at 13:59:36, paul.roy@xxxxxxx wrote:

Hello,

I would like to use C math functions in a CL program... but most of those
functions use doubles.. which are not supported in ILE CL...

I don't think you will ever get it to work. I'm having to dig deep into my memory banks of this but if I recall correctly ...

I experimented with trying to do this with RPG back in the V3R6 time frame. i.e. Faking out doubles by using a char field. The problem is that apparently the way the system passes doubles under the covers is not the same as it passes char. As a result while you can get the right value set in the char field that is not what the API will see. I can't remember the gory details and it probably does't matter - but you might have noticed that in the next release of RPG, floats were added to the language. Hmmmm - wonder why that was?

Barbara Morris might have more to add to this - she was the person I worked with on this issue - but I do remember I wasted a lot of time trying to get it to work before the guys in Rochester told us we were wasting our time.


Jon Paris

www.partner400.com
www.SystemiDeveloper.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.