I was wondering if I can create macro that creating value with custom "shift" (or other way to create it in compile time). I mean, concatenate two numbers or something...
Something like that (of course it's not working):
#define CUSTOM_DOUBLE(shift) 1.05E shift
I know I can do:
#define CUSTOM_DOUBLE(shift) 1.05 * pow(10.0, shift)
But I'm aware that it isn't calculated in compile time.