Afficher un message
Vieux 14/04/2008, 06h40   #5
Ian Collins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: #define for very small numbers ?

CBFalconer wrote:
> Ian Collins wrote:
>> pereges wrote:
>>
>>> I need to define the plancks constant 6.67 X 10 exp -34. Is it
>>> possible to do it using #define or would you suggest using a
>>> (static ?)const double.

>> You could use #define, but it would be better to use a const double.

>
> Why? Think about it. That way you can't define compile time
> constants.
>

What use is a compile time floating point constant?

--
Ian Collins.
  Réponse avec citation
 
Page generated in 0,06372 seconds with 9 queries