0

What does it mean "possibly lossy conversion from double to int"

How this error can be corrected

9th May 2019, 8:17 AM
Shiksha Bajpayee
Shiksha Bajpayee - avatar
11 Antworten
+ 2
I don't get your question, please make it clear a little bit more
9th May 2019, 8:21 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 2
please include the code here if possible
9th May 2019, 8:24 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 2
use the plus sign beside your text box to include the code
9th May 2019, 8:26 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 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
9th May 2019, 8:31 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 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
9th May 2019, 3:39 PM
Trigger
Trigger - avatar
+ 1
Okkk👌👌👌👌nice my doubt is clear thanks for help
9th May 2019, 8:40 AM
Shiksha Bajpayee
Shiksha Bajpayee - avatar
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
9th May 2019, 8:23 AM
Shiksha Bajpayee
Shiksha Bajpayee - avatar
0
You can see it in my account it is already public
9th May 2019, 8:25 AM
Shiksha Bajpayee
Shiksha Bajpayee - avatar
0
Where to use it is showing error in the 15 line and + sign is used in the system.out line
9th May 2019, 8:29 AM
Shiksha Bajpayee
Shiksha Bajpayee - avatar
0
Oh😋okk first thing i am not bro i am girl thanks for advice
9th May 2019, 8:32 AM
Shiksha Bajpayee
Shiksha Bajpayee - avatar
0
Means my program is correct
9th May 2019, 8:34 AM
Shiksha Bajpayee
Shiksha Bajpayee - avatar