custom constant definition?

If one wishes to declare a constant float, you can't simply use 1.5 since that will be computed as a double. You must declare it as 1.5f. Is it possible to create a custom definition such as that?

I have no practical use for this, I was just thinking about trigonometric functions that only accept radian answers and how it'd be nice if you could have the function overloaded with sin(2.d) and sin(2.r) thus going to different versions.

Just a curiosity, really.
Topic archived. No new replies allowed.