From: markb@sdcrdcf.UUCP (Mark Biggar)
Subject: Re: Questions about Ada
Date: Wed, 5-Feb-86 13:13:52 EST [thread overview]
Date: Wed Feb 5 13:13:52 1986
Message-ID: <2610@sdcrdcf.UUCP> (raw)
In-Reply-To: 2608@sdcrdcf.UUCP
In article <2608@sdcrdcf.UUCP> steve@sdcrdcf.UUCP (Steven Holtsberg) writes:
>(1) In the reference manual, on page 8-10, it says that overloading
>is defined for subprograms, enumeration literals, operators, and single entries
>
>However, I do not know what "single entries" are, and I cannot
>find a definition in the manual.
>
>Does anyone know the definition of a "single entry"?
I took this to mean that a tasks entires can be overloaded independently
and not as a group.
>(2) On page 3-20 of the reference manual, the canonical form for
>any floating point number other than zero is given as
>
>sign * mantissa * (radix ** exponent)
>
>My question: Why is radix given as a parameter?
>Isn't the radix, by definition, two?
NO, the radix of a floating constant is programmer specifiably.
The default for a constant like 1.3E-3 is radix 10, but if you say
constant value
16#E.0#E1 14*(16**1)=224.0
2#1.1111_1111_111#E11 1.1111_1111_111 *(2**11) = 4095.0
base 2
The radix of the internal representation for FLOAT constants
is implementation defined.
Mark Biggar
{allegra,burdvax,cbosgd,hplabs,ihnp4,akgua,sdcsvax}!sdcrdcf!markb
next prev parent reply other threads:[~1986-02-05 18:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1986-02-05 2:38 Questions about Ada Steven Holtsberg
1986-02-05 18:13 ` Mark Biggar [this message]
1986-02-10 13:56 ` rgenter
1986-02-10 18:12 ` rose
1986-02-11 18:15 ` Single Entry: a Buzzword? Stavros Macrakis
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox