Calculates the percent of value of total with accuracy up to a tenth.
value
total
double calcPercent(final double value, final double total) { return (value * 1000 / total).floorToDouble() / 10; }