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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b22211eabfb58b72 X-Google-Attributes: gid103376,public From: doucet@ripolin.laas.fr (Jean-Etienne Doucet) Subject: Re: Help! Date: 1996/10/02 Message-ID: <52tf4e$d88@news.cict.fr>#1/1 X-Deja-AN: 186649017 distribution: world references: <52s3qb$foi@newsbf02.news.aol.com> organization: LAAS-CNRS, Toulouse (France) reply-to: doucet@ripolin.laas.fr newsgroups: comp.lang.ada Date: 1996-10-02T00:00:00+00:00 List-Id: In article foi@newsbf02.news.aol.com, johnherro@aol.com (John Herro) writes: [[ snipped: good advices about the use clause and put_line not working with floating-point types...]] | That should fix everything. When you run the program and type the | number of dependents, don't forget that you're inputting a float. E.g., | type "3.0", not "3". I hope this helps. | - John Herro | Software Innovations Technology | http://members.aol.com/AdaTutor | ftp://members.aol.com/AdaTutor About this last point, it depends on which compiler you're using: the remark is true for Ada 83 compilers, but Ada 95 (and thus Gnat) allows to enter an "integer" value when a floating-point is expected: see ARM (v6.0), annex A.10.9. In this case, typing "3" is OK... / Jean-Etienne DOUCET | LAAS - CNRS \ | doucet@laas.fr | Toulouse FRANCE | |----------------------------+----------------------------| \ (sig en chantier, comme la flute de Mozart...) /