From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,d92604885f078c76 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,d92604885f078c76 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Passing Floats Ada->C Date: 1998/07/28 Message-ID: #1/1 X-Deja-AN: 375552327 Sender: matt@mheaney.ni.net References: <35BCA22D.DB070D0F@email.mot.com> NNTP-Posting-Date: Mon, 27 Jul 1998 21:39:51 PDT Newsgroups: comp.lang.ada,comp.lang.c++ Date: 1998-07-28T00:00:00+00:00 List-Id: Dennis Miller writes: > Has anyone encountered any difficulties in sending float values from Ada > to C? The problem I've had in the past is that Float in Ada sometimes means something else in C, say long float. Make sure the underlying representations are the same. If you're using Ada 95, you shouldn't have a problem if you stick to the types in package Interfaces.C, and remember to use pragma Convention (C) on your subprograms.