Personally, I do not always use identifiers, since it is the reasons (memory) that are raised here. An interesting feature of the C # compiler is that it actually compiles the following one and the same thing:
static void Foo() { var x = 100F; Console.WriteLine(x); } static void Bar() { var x = (float)100;
I believe the second version is more readable. Therefore, I use this approach. The only time AFAIK does something else, with a decimal point with trailing zeros - i.e.
static void Foo() { var x = 100.00M; Console.WriteLine(x); } static void Bar() { var x = (decimal)100.00;
source share