From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Fixed vs float and precision and conversions Date: Thu, 9 Jul 2020 10:11:04 +0300 Organization: Tidorum Ltd Message-ID: References: <756885db-118a-4d76-b90d-e547a3cabf28o@googlegroups.com> <518ff68b-1017-4775-8248-c40048b4fe67o@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net NkpiiPC8aQYzFsPTyX1IHAcKd4M//S0avPVCkIBnSYapAleqd+ Cancel-Lock: sha1:hwgQ7R6YJHIV1tOSO0c2VIXZiao= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:59410 List-Id: On 2020-07-09 0:24, Björn Lundin wrote: > Den 2020-07-08 kl. 22:34, skrev Niklas Holsti: >> But the values in the Global_Odds table are all given with two >> decimals, not three, so why not define Fixed_Type with delta 0.01, >> which avoids this possible Float precision problem, as well as being >> more apt? > > Because I wanted to express 6.5% -> 0.065 in fixed_type as well. > I think I mentioned that in a post. Oh yes, I didn't remember that. Sorry. -- Niklas Holsti niklas holsti tidorum fi . @ .