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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9bb56e94a4c5bb5e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!twister.socal.rr.com.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada Subject: Re: How unchecked conversion works? References: From: Keith Thompson Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:UTn2dlmwPFqa/VVb18Q+TOND/0g= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 15 Jan 2005 01:27:15 GMT NNTP-Posting-Host: 66.91.240.168 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1105752435 66.91.240.168 (Fri, 14 Jan 2005 17:27:15 PST) NNTP-Posting-Date: Fri, 14 Jan 2005 17:27:15 PST Organization: RoadRunner - West Xref: g2news1.google.com comp.lang.ada:7791 Date: 2005-01-15T01:27:15+00:00 List-Id: Marius Amado Alves writes: >> Don't use unchecked_conversion for what? > > For converting an real to an integer. > >> I think the original poster >> was specifically asking about the semantics of an unchecked_conversion >> from fixed to integer, not about a type conversion. > > Does the ARM specify the internal representation of numerical values? > Only that would give the sought predictability. I don't think it *quite* specifies the internal representation, but the requirements on the representable values strongly imply that they're represented as scaled integers. -- Keith Thompson (The_Other_Keith) kst-u@mib.org San Diego Supercomputer Center <*> We must do something. This is something. Therefore, we must do this.