Hi,
If I enter the following code does the compiler calculate the constant expressions at compilation time?
i.e does 24 * 60 get calc'd at compile time and replaced with 1440 or does it just produce executable code that does the calc (24 * 60) when the code is run?
I am assuming the former for now as most compilers do this.
Best regards
Rob
If I enter the following code does the compiler calculate the constant expressions at compilation time?
Example Mathematical Expression:
jdMinutes = Floor(Floor(jdTimeOnly * 24 * 60) / 5) * 5 * 24 * 60
i.e does 24 * 60 get calc'd at compile time and replaced with 1440 or does it just produce executable code that does the calc (24 * 60) when the code is run?
I am assuming the former for now as most compilers do this.
Best regards
Rob