0
Why 3 + 2 = 5.0 not 5
2 Respostas
- 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
- 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.