java remove all the numbers after decimal point code example Example: how remove decimal points in java String truncated = String.valueOf((int) doubleValue);