comp.lang.ada
 help / color / mirror / Atom feed
* Radix quey
@ 1986-02-14  3:14 "Jim McGrath"
  0 siblings, 0 replies; only message in thread
From: "Jim McGrath" @ 1986-02-14  3:14 UTC (permalink / 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
-------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1986-02-14  3:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1986-02-14  3:14 Radix quey "Jim McGrath"

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