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.7 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 (Tek) 9/28/84 based on 9/17/84; site mako.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!tektronix!orca!mako!jans From: jans@mako.UUCP (Jan Steinman) Newsgroups: net.lang.ada Subject: Re: Real numbers with Janus/Ada Message-ID: <506@mako.UUCP> Date: Wed, 9-Jan-85 18:38:59 EST Article-I.D.: mako.506 Posted: Wed Jan 9 18:38:59 1985 Date-Received: Sat, 12-Jan-85 07:29:15 EST References: <1883@burdvax.UUCP> <245@gumby.UUCP> Reply-To: jans@mako.UUCP (Jan Steinman) Distribution: net Organization: Tektronix, Wilsonville OR List-Id: In article <245@gumby.UUCP> g-frank@gumby.UUCP writes, quotes: >> I seemed to recall that Janus/Ada besides lacking all the features >> mentioned before, also lacks Float numbers (or real numbers). > >According to their literature, Janus/Ada lacks "based real numbers." >What the heck is that? The term doesn't appear in Gehani. I do think >the language handles floats. There seems to be some confusion here. A real number can be either a "fixed point type" or "floating point type", both of which are subtypes of the anonymous predefined type "universal_real". (LRM language is in double quotes) The mentioned 'based real numbers' sounds like the method used in Ada to specify real literals in arbitrary radix, something few languages offer. (When was the last time you needed a number like 16#-F.EDCBA987654#E32?) I would assume that Janus/Ada supports floating point operations in ordinary base 10 representations. >... The term doesn't appear in Gehani.... Don't mess with popular books for questions like this. GPO will send you ANSI/MIL-STD-1815A ("Language Reference Manual", or commonly, LRM") for a mere $8.00. It's not light reading, but is precise, concise, and makes K&R look like "Dick and Jane" in its completeness. The only other I'd recommend is "Software Engineering With Ada", Grady Booch. References: LRM 2.4.2-5, 3.5.6-5, 3.5.7-4 -- :::::: Jan Steinman Box 1000, MS 61-161 (w)503/685-2843 :::::: :::::: tektronix!tekecs!jans Wilsonville, OR 97070 (h)503/657-7703 ::::::