C
C#2y 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
kocha
kocha2y ago
It can just be 3
hiyosilver
hiyosilver2y ago
Although you should not rely on it being exactly 3
kocha
kocha2y ago
i.e. don’t use == with floats or doubles
Accord
Accord2y 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.

Did you find this page helpful?