✅ Operators in C#
Hello, can someone explain what is being said here that we will get inaccurate results; I try it and get the correct result of 1.4 for some cases.

4 Replies
first three would not compile since you can't assign decimal to int without an explicit cast
ahh
didn't noticed that
last one will give 1 yeah
because it's treated as "integer division" ?
last would compile, but would perform floor division since both are integers
yep I see, thanks !