0
will addition of integers also give me a float value? Eg. 2 + 3 = 5.0 or 2 + 3 = 5
2 Answers
+ 5
No, addition, subtraction and even multiplication will give you INTEGER when you will perform math operations
with integers
But division will give FLOAT values always
+ 5
int + int = int
float + int = float
division = float
float + float = float
int * float = float
int * int = int
float * float = float