comp.lang.ada
 help / color / mirror / Atom feed
From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: Range excluding 0.0
Date: Sat, 29 Aug 2009 09:46:15 -0400
Date: 2009-08-29T09:46:15-04:00	[thread overview]
Message-ID: <nospam-5846FD.09461529082009@news.aioe.org> (raw)
In-Reply-To: 6f1ce89e-7889-4d58-b0f8-1945727f5149@f33g2000vbm.googlegroups.com

In article 
<6f1ce89e-7889-4d58-b0f8-1945727f5149@f33g2000vbm.googlegroups.com>,
 vlc <just.another.spam.account@googlemail.com> 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?

Perhaps something like this:

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

The range on my implementation is 1.40130E-45 to 3.40282E+38.

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>



  parent reply	other threads:[~2009-08-29 13:46 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
2009-08-29 13:46 ` John B. Matthews [this message]
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