Is there any way in C# to treat all numeric literals (which I describe as "magic numbers") as doubles?
For example
double number = 1;
var a = 7 / 8 * number;
In this calculation 7 / 8 returns 0, but 7.0 / 8.0 returns 0.875.
In my case most of these formulas are copied from VBA and they are all over the place. It would be very time consuming and error prone to find all of them and replace them manually.