Thread overview
C equivalent for the D "float" type
Sep 18, 2009
TSalm
Sep 18, 2009
div0
Sep 18, 2009
TSalm
Sep 20, 2009
Jeremie Pelletier
September 18, 2009
Hello,

What is the C equivalent for the D "float" type ?

Thanks in advance,
TSalm
September 18, 2009
TSalm wrote:
> Hello,
> 
> What is the C equivalent for the D "float" type ?
> 
> Thanks in advance,
> TSalm

float and double is double.

in c, real support is compiler dependant, it may or may not be available.

- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
September 18, 2009
>> What is the C equivalent for the D "float" type ?
>
> float and double is double.
>
> in c, real support is compiler dependant, it may or may not
> be available.
>
Thanks !
September 20, 2009
TSalm wrote:
>>> What is the C equivalent for the D "float" type ?
>>
>> float and double is double.
>>
>> in c, real support is compiler dependant, it may or may not
>> be available.
>>
> Thanks !

Most of the time you'll see D's real type to be declared as 'long double' in C/C++, some compilers such as VC++ understand it to be syntactically different from 'double' but implement it using the same semantics (ie, 64bits).