|
Hi, Brad: I don't think you can do that directly... but, IBM ILE C/400 has built-in support for packed decimal data types, so you can just declare your parameter as "decimal " and it should be ok... then, you can always convert to float if needed, using an assignment statement, if you really need it as a "float". Regards, Mark S. Waterbury ----- Original Message ----- From: "Brad Stone" <brad@bvstools.com> To: <midrange-l@midrange.com> Sent: Wednesday, October 02, 2002 9:57 AM Subject: CL calling a C procedure... > I'm not that up on C, but I'm playing with some stuff and > have a question. > > If I have a 15,5 decimal field in a CL, and I want to call a > C procedure using CALLPRC, how would I pass this variable > into a float to the C procedure on the 400? > _______________________________________________ > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l > or email: MIDRANGE-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.