[gtkada] how to print a value with 16 bit precision

Grein, Christoph (Fa. ESG) Christoph.Grein at eurocopter.com
Thu Jun 12 08:26:22 CEST 2008


> and Default_Aft is defined like that :
>   Default_Aft  : Field := Num'Digits - 1;
>
> As Long_Float has 15 digits, that explains the 14 printed ones.
>
> So you need to set Aft to the right value.
> It could be like that:
> Put (Foo) -> Put (Foo, Aft => 16);

But that is cheating. There is only 15 digits accuracy guaranteed for
this type, so printing more than those is dubious.


Eurocopter Deutschland GmbH
Sitz der Gesellschaft/Registered Office: Donauwoerth
Registergericht/Registration Court: Amtsgericht Augsburg HRB 16508
Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: Dr. Lutz Bertling
Geschaeftsfuehrung/Board of Management:
Dr. Wolfgang Schoder, Vorsitzender/CEO; Friedrich-Wilhelm Hormel; Ralf Barnscheidt

CONFIDENTIALITY NOTICE 

This communication and the information it contains is intended for the addressee(s) named above and for no other persons or organizations. It is confidential and may be legally privileged and protected by law. The unauthorized use, copying or disclosure of this communication or any part of it is prohibited and may be unlawful. 
If you have received this communication in error, kindly notify us by return e-mail and discard and/or delete the communication. Thank you very much. 
It is possible for e-mails to be intercepted or affected by viruses. Whilst we maintain virus checks on our e-mails, we accept no liability for viruses or other material which might be introduced with this message. 




More information about the gtkada mailing list