Hex floats

Stewart Gordon smjg_1998 at yahoo.com
Thu Feb 16 04:28:01 PST 2012


On 16/02/2012 12:04, Don Clugston wrote:
> On 15/02/12 22:24, H. S. Teoh wrote:
>> What's the original rationale for requiring that hex float literals must
>> always have an exponent? For example, 0xFFi obviously must be float, not
>> integer, so why does the compiler (and the spec) require an exponent?
>
> The syntax comes from C99.

Do you mean the syntax has just been copied straight from C99 without any thought about 
making it more lenient?

Stewart.


More information about the Digitalmars-d-learn mailing list