I have to make this method round up a double which is fine but I need it to only round up the first number after the first decimal.
Example 83.2839783214 would be 83.3 here is the code I have so far I can't seem to figure out how exactly to implement it.
public double getPercentFull(){
double percent;
double p = (storage / capacity) * 100;
percent = (double)Math.round(p);
return percent;