|
|
| Heh. how do I use Math.round() ? Java keeps giving me the error: DoubleTester.java:8: possible loss of precision Yeah ... if I had the api page, I could figure it out ... |
| Maybe you use float |
| andergam, I'm converting a double to int, like so: int percentage = Math.round((100 * probability)); |
| Put (int) before round |
| So (int) Math.round(expression); ? |
| Yes |
| K. thank you. |
| Np |