comp.lang.ada
 help / color / mirror / Atom feed
From: cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!do c.ic.ac.uk!uknet!mcsun!sztaki!news@ucbvax.Berkeley.EDU  (Zoltan Sugar)
Subject: A question about fixed point types
Date: 20 Sep 93 07:33:32 GMT	[thread overview]
Message-ID: <CDn6Bw.1yG@sztaki.hu> (raw)

 What does it mean 'universal fixed type'?

                   ??????  type UNIVERSAL_FIXED delta system_depend range 0.0 .
. 1.0;

And if it is true, then if I write

declare
	type t1 is delta 0.01 range 10.0 .. 100.0;
	type t2 is delta 0.1  range 100.0 .. 1000.0;
	a1 : t1 := 11.0;
	a2 : t2 := 111.0;
begin
	a2 := t2(a1 * a2);
...

then the a1 * a2 epression has universal fixed type. But this value (11.0 * 111
.0)
is out of range of (0.0 .. 1.0). I don't understand it.
And how the generated code used to storing this values.


			Thanks.

                 reply	other threads:[~1993-09-20  7:33 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