If I declare for instance
static const float PI = 3.14159265358979323846264338327950288419716939937510f;
to be the member of some Math class, it tells me:
a member of type "const float" cannot have an in-class initializer
so I have to set it in the .cpp file:
const float Math::PI = 3.14159265358979323846264338327950288419716939937510f;
yet when I do the same with an unsigned integer instead of float, it doesn't recognize it as a compile-time constant and doesn't let me use it as one, unless I set the value inside the class header(something which I'm not allowed to do with a float)