+ 3
A quick question
Can we use double for everything we use? Numbers, texts and stuff. If not, why do we have int for whole numbers as we can use double for them?
3 Antworten
+ 5
A double can only store a floating point number value, though some languages like C might not really care, what you actually do with the variable. The reason why we still use int values is, that 1. you need floating point values rather seldom and 2. they would waste memory and other resources for unnecessary accuracy if they where default.
+ 3
You're welcome :)
+ 2
Thanks so much, sorry I am new.