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,b1850e397df49d95 X-Google-Attributes: gid103376,public From: kst@aonix.com (Keith Thompson) Subject: Re: How to convert an Fixed_Point to to an Integer ? Date: 1996/12/26 Message-ID: #1/1 X-Deja-AN: 206004749 sender: news@thomsoft.com (USENET News Admin @flash) x-nntp-posting-host: pulsar references: <01bbf058$cbdbf980$LocalHost@jerryware> <1996Dec23.072835.1@eisner> <01bbf179$0c4361e0$9b2d5c8b@jerryware> <32C02A1E.6268@watson.ibm.com> organization: Aonix, San Diego, CA, USA newsgroups: comp.lang.ada originator: kst@pulsar Date: 1996-12-26T00:00:00+00:00 List-Id: In dewar@merv.cs.nyu.edu (Robert Dewar) writes: > True enough, of course in all GNAT compilers, Duration has a vrey large > range (it is 64 bit signed in units of nanoseconds). I wonder whether > there really will be Ada 95 compilers with narrow ranges .... Yes, under ObjectAda the range of type Duration is about +/-131072.0. (It's a 32-bit type.) > So a truly portable solution would have to use a loop ... Actually, a truly portable solution could just use an algorithm to compute the number of days between two given dates and then account for the seconds. It's a bit more complicated than it should need to be, but there's no portability problem. -- Keith Thompson (The_Other_Keith) kst@aonix.com <*> TeleSo^H^H^H^H^H^H Alsy^H^H^H^H Thomson Softw^H^H^H^H^H^H^H^H^H^H^H^H^H Aonix 10251 Vista Sorrento Parkway, Suite 300, San Diego, CA, USA, 92121-2706 "SPOON!" -- The Tick