remove decimal places from long JAVA code example Example: how remove decimal points in java String truncated = String.valueOf((int) doubleValue);