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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aceef612e0190367 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-20 15:00:09 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp1.proxad.net.POSTED!not-for-mail From: "EtienneB" Newsgroups: comp.lang.ada References: <998i7d$19j21@tech.port.ac.uk> Subject: Re: Integer? float? confused... X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: Date: Tue, 20 Mar 2001 22:59:30 GMT NNTP-Posting-Host: 193.252.179.44 X-Complaints-To: abuse@proxad.net X-Trace: nnrp1.proxad.net 985129170 193.252.179.44 (Tue, 20 Mar 2001 23:59:30 MET) NNTP-Posting-Date: Tue, 20 Mar 2001 23:59:30 MET Organization: Guest of ProXad - France Xref: supernews.google.com comp.lang.ada:5940 Date: 2001-03-20T22:59:30+00:00 List-Id: > Sin_Result := Num - (Num ** 3) / 6 + (Num ** 5) / 120; > return Sin_Result; Num - (Num ** 3) / 6 + (Num ** 5) / 120; this expression is integer and your function must return float I advice you to change num type to float and to return Num - (Num ** 3) / 6.0 + (Num ** 5) / 120.0; But sin(x) is already defined in ada.numerics.aux Voila Etienne Baudin