[Issue 308] Documentation of float.max_exp, min_exp is misleading

Don Clugston dac at nospam.com.au
Tue Sep 12 23:54:02 PDT 2006


d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=308
> 
> 
> smjg at iname.com changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |smjg at iname.com
> 
> 
> 
> 
> ------- Comment #1 from smjg at iname.com  2006-09-09 18:50 -------
> How do you know it's the spec that's wrong and not the complier?  Moreover, why
> are they min_exp and max_exp, not minExp and maxExp as per naming conventions?

Because they are the same values that C compilers return. Eg Visual C++ 
returns the same values. I don't know why C ended up with such a 
ridiculous definition, but those are the values used on all C/C++ 
compilers that I know of.




More information about the Digitalmars-d-bugs mailing list