how to chop off float decimals in java code example
Example 1: java 2 decimals
double res = Math.round(a * 100) / 100;
Example 2: java format double no decimal places
int x = (int) y
double res = Math.round(a * 100) / 100;
int x = (int) y