comp.lang.ada
 help / color / mirror / Atom feed
From: jans@mako.UUCP (Jan Steinman)
Subject: Re: Real numbers with Janus/Ada
Date: Wed, 9-Jan-85 18:38:59 EST	[thread overview]
Date: Wed Jan  9 18:38:59 1985
Message-ID: <506@mako.UUCP> (raw)
In-Reply-To: 245@gumby.UUCP

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 ::::::

      parent reply	other threads:[~1985-01-09 23:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1985-01-06 23:39 Real numbers with Janus/Ada William Loftus
1985-01-08  5:49 ` g-frank
1985-01-09 15:33   ` D Gary Grady
1985-01-09 23:38   ` Jan Steinman [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox