Preprocessor Confusion?

Why does Keil's C51 preprocessor work fine with:

#define MULTPLR (unsigned char)((float)9.114584e-5 * (float)18432000 / (float)12)

...but consistently give the wrong result with:

#define MULTPLR (unsigned char)((float)9.114584e-5 * (float)18432000 / (float)6)

???

Parents Reply Children
More questions in this forum