Tag: decimal
-
Why in C# an explicit decimal => long conversion operator is called implicitly, losing precision?
6 The following C# program silently and implicitly calls an explicit decimal-to-long conversion operator, losing precision. I don’t understand why this happens. As far as I understand, in C# explicit operator should not be called implicitly by the language. Especially that in this case the silent explicit conversion is losing precision (1.1M => 1L). This…