From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,289588029f2ed8e6 X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: Size of Float Date: 2000/09/28 Message-ID: <39D34C66.12801E1F@acm.org>#1/1 X-Deja-AN: 675123058 Content-Transfer-Encoding: 7bit References: <39D13A5C.9A587A82@erols.com> <39D1F845.90993667@acm.org> <39D2C182.B1CCE75D@nitek.com> To: Anthony Busigin X-Accept-Language: en X-Server-Date: 28 Sep 2000 13:49:33 GMT Content-Type: text/plain; charset=us-ascii Organization: Quadrus Corporation Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-09-28T13:49:33+00:00 List-Id: Anthony Busigin wrote: > Long_Long_Float on Intel chips is 80 bits - not 96 bits. Try running the following after compiling it on a PC with GNAT 3.13p: with Ada.Text_IO ; use Ada.Text_IO ; procedure How_Big_Is_Long_Long_Float is begin -- Put_Line ("Standard.Long_Long_Float'Size: " & Integer'Image (Long_Long_Float'Size)) ; Put_Line ("Standard.Long_Long_Float'Digits: " & Integer'Image (Long_Long_Float'Digits)) ; -- end How_Big_Is_Long_Long_Float ; On my machine, the output looks like this: Standard.Long_Long_Float'Size: 96 Standard.Long_Long_Float'Digits: 18 Granted, the underlying floating point processor hardware may use only 80 of the 96 bits. The storage size however, is going to be 96 - probably to make things fall on longword boundaries. I guess it all depends on what the meaning of the word "size" is? :-) MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Giving money and power to Government is like giving whiskey and car keys to teenage boys." -- P. J. O'Rourke ======================================================================