Thread overview | ||||||
---|---|---|---|---|---|---|
|
September 18, 2009 C equivalent for the D "float" type | ||||
---|---|---|---|---|
| ||||
Hello, What is the C equivalent for the D "float" type ? Thanks in advance, TSalm |
September 18, 2009 Re: C equivalent for the D "float" type | ||||
---|---|---|---|---|
| ||||
Posted in reply to TSalm Attachments: | 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 Re: C equivalent for the D "float" type | ||||
---|---|---|---|---|
| ||||
Posted in reply to div0 | >> 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 Re: C equivalent for the D "float" type | ||||
---|---|---|---|---|
| ||||
Posted in reply to TSalm | 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).
|
Copyright © 1999-2021 by the D Language Foundation