❔ 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
It can just be 3
Although you should not rely on it being exactly 3
i.e. don’t use == with floats or doubles
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.