Hi there,
Think this is a pretty simple problem! I'm trying to create a header file with some physical constants. The Planck constant is giving me trouble due its tiny size in SI units. Essentially, defining a pre-processor constant using E-notation does not seem to work. My header file looks something like this:
#define PI 3.141592654
#define C 299792458.0
#define H 6.26068E-34
I have written a simple program to test if this works:
#include <stdio.h>
#include <math.h>
#include "constants.h"
double a;
int main()
{
a=H;
printf("%lf",a);
}
The output is 0.00000. Not Planck's constant! Any ideas?