0

Why 3 + 2 = 5.0 not 5

19th Dec 2016, 8:02 AM
Shirisha Sri
Shirisha Sri - avatar
2 Réponses
- 1
Hello 5.0 = 5 though it also show the point. Say if there was 3.2 + 2.3 = 5.5 Have a nice day
19th Dec 2016, 8:53 AM
LukeYeshuaisLight
LukeYeshuaisLight - avatar
- 1
3 and 2 are integers. addition , subtraction or multiplication gives result in Integer only but division on them makes the answer a float. note: if you have 2 numbers which are integers then the result of addition, subtraction or multiplication of them will be integer only division of them is float. if you have 2 numbers either one of them or both of them are float then addition, subtraction, multiplication and division results in float.
19th Dec 2016, 12:26 PM
k harsha vardhan
k harsha vardhan - avatar