Search
Setup for Free
C
C#
•
12mo ago
Faker
✅ 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
.
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,156
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
S
Sehra
•
1/15/25, 3:05 PM
first three would not compile since you can
't assign decimal to int without an explicit cast
F
Faker
OP
•
1/15/25, 3:05 PM
ahh
F
Faker
OP
•
1/15/25, 3:05 PM
didn
't noticed that
F
Faker
OP
•
1/15/25, 3:05 PM
last one will give 1 yeah
F
Faker
OP
•
1/15/25, 3:05 PM
because it
's treated as
"integer division
"
?
S
Sehra
•
1/15/25, 3:05 PM
last would compile
, but would perform floor division since both are integers
F
Faker
OP
•
1/15/25, 3:06 PM
yep I see
, thanks
!
Similar Threads
✅ ! vs != and not operators in C#
C
C# / help
11mo ago
Operators.ConcatenateObject()
C
C# / help
4y ago
Firefox browser in c#/c++
C
C# / help
14mo ago
C++ struct initializing in C#
C
C# / help
2y ago