About 60 results
Open links in new tab
  1. What does "possible lossy conversion" mean and how do I fix it?

    int squareRoot = Math.sqrt(i); the sqrt method produces a double, but a conversion from double to int is potentially lossy. What does "potentially lossy" mean? Well lets look at a couple of examples. A …

  2. Possible Lossy Conversion error in java from double to int

    May 17, 2018 · Now this statement results in possible lossy conversion error because the variable is of type int and Math.pow() return a double value i.e. 8.0 which is fair enough.

  3. java - Possible lossy conversion from double to int and cannot find ...

    Dec 17, 2015 · Possible lossy conversion from double to int and cannot find symbol [duplicate] Asked 10 years, 3 months ago Modified 7 years, 8 months ago Viewed 89k times

  4. How can I fix "possible lossy conversion from double to int"?

    Jan 15, 2022 · How can I fix "possible lossy conversion from double to int"? [duplicate] Asked 4 years, 2 months ago Modified 4 years, 2 months ago Viewed 5k times

  5. Lossy Audio Bootlegs | Guitars101 - Guitar Forums

    Jan 30, 2025 · MP3s and other lossy formats go here

  6. (Java) incompatible types: possible lossy conversion from long to int

    Mar 9, 2022 · Neither of the answers to this question really explained why this is a lossy conversion. The reason is that array subscripts in Java are converted to int values. Converting a long expression to …

  7. Java JDK - possible lossy conversion from double to int

    Java JDK - possible lossy conversion from double to int Asked 10 years, 3 months ago Modified 2 years, 7 months ago Viewed 149k times

  8. java - getting incompatible types possible lossy conversion from …

    Feb 11, 2025 · "incompatible types possible lossy conversion from double to int" hey so this is just a small code I have to work on and I was trying to make it print out all numbers in the array that are not …

  9. casting - Fixing "incompatible types: possible lossy conversion from ...

    May 20, 2022 · Fixing "incompatible types: possible lossy conversion from int to byte" in Java Ask Question Asked 3 years, 10 months ago Modified 3 years, 10 months ago

  10. Is the Java float to double cast lossy? - Stack Overflow

    Apr 15, 2025 · Float to is not lossy, but rounding is handled as default in standard and so, rounds mantissa so last bit is even (to produce equal probability rounding) but there should be no rounding …