??? 06/27/05 06:09 Read: times |
#95981 - preprocessor Responding to: ???'s previous message |
Michael Karas said:
Looks like it [the preprocessor] must just be doing text substitutions then. Yes - that is precisely what the preprocessor does. The preprocessor does not do maths. Abhishek Singh said:
if i'm right then in this case floating point support routines will be added just because preprocessor is unable to handle the floating point numbers and it is making text substitution See above leaving the expression for the compiler even though the program has nothing to do with floting point operation ? You have forced the expression to be floating-point by using the decimals in it: i = 10000.0/12/22.184; But that isn't the same expression as the original post, is it? The original post used only integers, and a lot of brackets: that meant the integer result in the denominator was zero - and, hence, the divide-by-zero error. |