C
C#17mo ago
TechDek

❔ C# double variable

Hey I'm currently learning the basics of C# and I was wondering if "doubles" need to have a decimal number or if they just can have a decimal number? For example, does it have to be a number like 3.242 or can it just be 3?
5 Replies
anita
anita17mo ago
It can just be 3
hiyosilver
hiyosilver17mo ago
Although you should not rely on it being exactly 3
anita
anita17mo ago
i.e. don’t use == with floats or doubles
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server