+ 2

how can one get an integer output from float inputs in java

3rd Jun 2020, 12:47 AM
Dickie Mwiry
Dickie Mwiry - avatar
4 Answers
+ 2
By casting or conversion - Integer.valueOf() e.g.
3rd Jun 2020, 12:55 AM
Sandra Meyer
Sandra Meyer - avatar
+ 2
thanks let me try
3rd Jun 2020, 12:59 AM
Dickie Mwiry
Dickie Mwiry - avatar
0
narrowing casting
3rd Jun 2020, 6:28 AM
LAKSHMI NARAYANAN M
LAKSHMI NARAYANAN M - avatar