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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.42.92.69 with SMTP id s5mr3266877icm.20.1400886927333; Fri, 23 May 2014 16:15:27 -0700 (PDT) X-Received: by 10.140.27.244 with SMTP id 107mr60821qgx.18.1400886927229; Fri, 23 May 2014 16:15:27 -0700 (PDT) Path: border1.nntp.dca.giganews.com!nntp.giganews.com!c1no15519553igq.0!news-out.google.com!qf4ni12380igc.0!nntp.google.com!c1no15519551igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 23 May 2014 16:15:26 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=77.13.206.5; posting-account=R80nsQoAAADNWKZhSnWyt-Rp7ZyxrQGD NNTP-Posting-Host: 77.13.206.5 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Wrong Asignment From: Cedric Injection-Date: Fri, 23 May 2014 23:15:27 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:186586 Date: 2014-05-23T16:15:26-07:00 List-Id: Hi All, I am learning Ada since a few days. In my book is a simple excercise to write a program. It looks like this: with Text_IO; with My_Int_IO; with My_Flt_IO; ---------------------------------------------------------------------- procedure chapter2_programming_projects_1 is Celsius : float := 0.0; Fahrenheit : float := 0.0; begin -- Input Text_IO.Put("Please put in the temperature in Fahrenheit: "); My_Flt_IO.Get(Item => Fahrenheit); -- Processing Celsius := (5/9) x (Fahrenheit - 32); -- Output Text_IO.Put(Item => "The temperature in Celsius is "); My_Flt_IO.Put(Item => Celsius, Fore => 10, After => 2); end chapter2_programming_projects_1; The compiler says: Celsius := (5/9) x (Fahrenheit - 32); -- binary operator expected Why does this statement result in an binary object? Kind regards Cedric