+ 1

How to convert double or float to integer in java?

12th Dec 2020, 11:02 AM
Mohsin Uddin
Mohsin Uddin - avatar
2 Respostas
+ 5
Type casting: double d = 3.5; int i = (int) d; There is a lesson about it in Java course. https://www.sololearn.com/learn/Java/2168/
12th Dec 2020, 11:05 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 3
Mohsin Uddin Search about type casting in Google. You may find best results.
12th Dec 2020, 11:06 AM
❤☆Nani☆❤
❤☆Nani☆❤ - avatar