How to remove decimal values from a value of type ‘double’ in Java February 18, 2023 by Tarik Nice and simple. Add this snippet in whatever you’re outputting to: String.format("%.0f", percentageValue)