limits for numeric types
H. S. Teoh
hsteoh at quickfur.ath.cx
Fri Jun 21 12:46:48 PDT 2013
On Fri, Jun 21, 2013 at 09:19:36PM +0200, Craig Dillabaugh wrote:
> I feel kind of dumb asking this, as I thought I could solve it
> with 30 seconds on Google, but no luck.
>
> Where can I get values for min/max values for D numeric types,
> like what is available in limits.h and float.h for C/C++?
[...]
Take a look at this:
http://dlang.org/property.html
D type names have built-in properties: int.max, real.max, float.max,
etc.. No need to resort to an external file to define all these, since
the compiler already knows them in the first place!
T
--
Debian GNU/Linux: Cray on your desktop.
More information about the Digitalmars-d-learn
mailing list