comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: Fixed Point number mul, is it a bug?
Date: Fri, 19 Oct 2012 02:09:19 -0700 (PDT)
Date: 2012-10-19T02:09:19-07:00	[thread overview]
Message-ID: <f91b392a-7436-4c25-a73a-7f24c460a873@googlegroups.com> (raw)
In-Reply-To: <96d9c28c-f199-4c24-b04d-fd565b024bd3@googlegroups.com>

On Thursday, October 18, 2012 4:49:47 PM UTC+2, Adam Beneschan wrote:

> To elaborate a bit, the RM says that the 'Small of the type *must* be a power of two if not specified (3.5.9(8)).  The 'Small has to be no greater than the specified delta, and most compilers would choose the largest power of 2 that is <= the delta.  (This applies only to ordinary fixed-point types, not those with "digits" in the declaration.)  Shark8 showed how you can specify the 'Small, although that isn't completely portable because it's allowable for compilers not to let you specify a 'Small that isn't a power of 2 (3.5.9(21)).  
>                               -- Adam

To elaborate on this: Adam is of course right, but I doubt that any compiler that has decimal fixed points will reject the specification of a small that is a power of ten.



  reply	other threads:[~2012-10-19  9:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-18  7:11 Fixed Point number mul, is it a bug? kylix
2012-10-18  7:35 ` Vinzent Höfler
2012-10-18 14:49   ` Adam Beneschan
2012-10-19  9:09     ` AdaMagica [this message]
2012-10-18  7:57 ` Dmitry A. Kazakov
2012-10-18 10:34   ` Georg Bauhaus
2012-10-18 10:42   ` Ian Clifton
2012-10-18 12:37     ` Dmitry A. Kazakov
2012-10-19 22:58       ` Ian Clifton
2012-10-18 14:40     ` Adam Beneschan
2012-10-18 14:04 ` Shark8
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox