comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Conditional types?
Date: Sun, 10 Nov 2002 21:35:31 GMT
Date: 2002-11-10T21:35:31+00:00	[thread overview]
Message-ID: <DiAz9.2120$8S6.22901@sccrnsc01> (raw)
In-Reply-To: vpzz9.623$7p.887@sccrnsc04

> the system you can safely assume it's passing either a float, an integer,
> or an unsigned 32 bit integer. Is there a way do this in Ada ...
There is clearly no way to do this in Ada or any other language.  A given
set of 32 bits could be a representation of any of the above.  If,
however, you know things like "if it's an integer, its between -100 ..
100" or "if it's a float it's > +1.0E7" then you can rule out certain
possibilities, and hopefully be left with exactly one remaining
possibility.  If you know "this is either a table of integers, most
of which are small in absolute value, or it's a table of floats,
with many non-zero bits to the right of the point", then you can
make a probabilistic guess based on Bayes Theorem.
Are you trying to decrypt an undocumented old tape or something?



  reply	other threads:[~2002-11-10 21:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-10 20:34 Conditional types? Caffeine Junky
2002-11-10 21:35 ` tmoran [this message]
2002-11-11  4:43   ` Caffeine Junky
  -- strict thread matches above, loose matches on Subject: below --
2002-11-10 20:34 Caffeine Junky
2002-11-10 23:04 ` Dennis Lee Bieber
2002-11-13  6:41   ` AG
2002-11-11 13:30 ` Marin David Condic
2002-11-11 17:30   ` Larry Kilgallen
2002-11-12 12:50     ` Marin David Condic
replies disabled

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