comp.lang.ada
 help / color / mirror / Atom feed
From: MCGRATH%OZ.AI.MIT.EDU@XX.LCS.MIT.EDU ("Jim McGrath")
Subject: Radix quey
Date: Thu, 13-Feb-86 22:14:00 EST	[thread overview]
Date: Thu Feb 13 22:14:00 1986
Message-ID: <12183177717.25.MCGRATH@OZ.AI.MIT.EDU> (raw)



    From: sdcsvax!sdcrdcf!steve@ucbvax.berkeley.edu  (Steven Holtsberg)
    (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, it is not.  The radix can, in general, be any number.  If your
data is in base 10, then it is a big win if the language you are using
supports that representation directly, rather than forcing you to
convert it yourself.  Even computers do not exclusively compute in
base 2.  Many have optional base 8, 10, nd 16 operations.


Jim
-------

                 reply	other threads:[~1986-02-14  3:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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