Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
What does it mean "possibly lossy conversion from double to int"
How this error can be corrected
11 Respostas
+ 2
I don't get your question, please make it clear a little bit more
+ 2
please include the code here if possible
+ 2
use the plus sign beside your text box to include the code
+ 2
nah, am not talking about your code bro, i was explaining to you how you can include your code here for Java guru's to help you solve it
+ 2
When going from a larger number-type to a smaller one, you will get an error unless you use type casting
The following example is in C#
long MyLong = 12345
int MyInt = (int)MyLong
It is done using "(datatype)"
Hope this helps
+ 1
Okkkššššnice my doubt is clear thanks for help
0
I want to say that i have written a program in that a error is showing "possibly lossy conversion from double to int" And i am not understanding what does it mean
0
You can see it in my account it is already public
0
Where to use it is showing error in the 15 line and + sign is used in the system.out line
0
Ohšokk first thing i am not bro i am girl thanks for advice
0
Means my program is correct