So im having a double and i want my JLabel to display it, i do it like this:
jlabel.setText(String.valueOf(80.99999D)); // just an example number
But in addition to that, i would like to cut down the double number to maximum 2 digits behind the decimal point. So in the example above i would like the JLabel to only display 80.99. Is there any way to do it?