Some background... this is my second week in java and so far its going great in my comp sci class, but some of the eIMACS labs are killing me.
In the following code segment, a and b are non-negative doubles. Write code that assigns to b the result of rounding a to one decimal place.
// Enter a value to test here
double a = ;
// Enter your code here
I have tried to use Math.round(a,1); to round to one decimal place, its not working and i have no idea how to do it any other way, any help will be great.