Does anyone know the full list of C# compiler number literal modifiers?
By default declaring \'0\' makes it an Int32 and \'0.0\' makes it a \'Double\'. I can use the
You might want to start by looking at the C# language spec. Most of the types are listed in there, and have a suffix:
Of course, if you stop using var then you get around the whole problem, and your code becomes more readable (ok, thats subjective, but for something like this, it's more readable by other people:
var x = 0; //whats x?
float x = 0; //oh, it's a float
byte x = 0; // or not!