On Thu, 14 Feb 2013 at 13:59:36, paul.roy@xxxxxxx wrote:
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.