comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Range excluding 0.0
Date: Sat, 29 Aug 2009 15:12:49 +0200
Date: 2009-08-29T15:12:43+02:00	[thread overview]
Message-ID: <iywngfi7d6f2$.1f9d3v0jyi24a.dlg@40tude.net> (raw)
In-Reply-To: 6f1ce89e-7889-4d58-b0f8-1945727f5149@f33g2000vbm.googlegroups.com

On Sat, 29 Aug 2009 05:50:38 -0700 (PDT), vlc wrote:

> I would like to declare a subtype of Float which ranges from 0.0
> (excluded) to Float'Last. Is there a way to exclude the 0.0 from the
> range?

   subtype Positve_Float is Float range Float'Succ (0.0)..Float'Last;

When the machine is IEEE, this also excludes IEEE ideals between zero and
machine epsilon as well as infinities.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2009-08-29 13:12 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-29 12:50 Range excluding 0.0 vlc
2009-08-29 13:12 ` Dmitry A. Kazakov [this message]
2009-08-29 13:46 ` John B. Matthews
2009-08-29 17:10   ` vlc
2009-08-29 17:47 ` Charles H. Sampson
2009-08-29 19:28   ` Robert A Duff
2009-08-30 18:34     ` Charles H. Sampson
2009-08-29 20:51   ` John B. Matthews
2009-08-30  7:34     ` Dmitry A. Kazakov
     [not found]       ` <7_KdnXzM3cepeAfXnZ2dnUVZ_vidnZ2d@earthlink.com>
2009-08-31  7:37         ` Dmitry A. Kazakov
2009-08-31 13:58           ` John B. Matthews
2009-08-31 18:49             ` Dmitry A. Kazakov
2009-09-01 18:10               ` Keith Thompson
     [not found]             ` <iradnblskszGlgHXnZ2dnUVZ_oSdnZ2d@earthlink.com>
2009-09-01  0:36               ` John B. Matthews
2009-08-30  7:38   ` Dmitry A. Kazakov
2009-08-30 18:34     ` Charles H. Sampson
2009-08-30 20:43       ` Dmitry A. Kazakov
replies disabled

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