comp.lang.ada
 help / color / mirror / Atom feed
* sign bit for digits type
@ 1997-02-11  0:00 luo
  1997-02-12  0:00 ` David Taylor
  1997-02-12  0:00 ` Mats Weber
  0 siblings, 2 replies; 3+ messages in thread
From: luo @ 1997-02-11  0:00 UTC (permalink / raw)



Subject: sign bit for digits type
Newsgroups: comp.lang.ada
Organization: Cyber Access Internet Communications, Inc.
Summary: 
Keywords: 

I have a float type as follows:

package A is
   type float_32 is digits 6;
end A;

This type is unsigned as defined by the language or the compiler?
I declare an object and a '-' operator as follows to handle negative
numbers:

with A;
package B is
  function "-" (x, y : A.float_32) renames A."-" return A.float_32;
  Real :A.float_32 := -5.0;
end B;

What happens in procedure C when I do the following:
with A;
with B;
procedure C is
  value : A.float_32 := B.Real;
begin
  null;
end C;

What is value equal to, 5.0 or -5.0?
Is this compiler dependent?

TIA.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-02-12  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-02-11  0:00 sign bit for digits type luo
1997-02-12  0:00 ` David Taylor
1997-02-12  0:00 ` Mats Weber

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