hi, i want to ask how can i format a double variable so that it will hava a 4 decimal point to the right? thank you very much!
here is my codeLastValue is a double variable)
LastValue = Float.parseFloat(CalcNumber.getText());
LastValue += FirstValue;
CalcNumber.setText(Double.toString(LastValue));
here is my codeLastValue is a double variable)
LastValue = Float.parseFloat(CalcNumber.getText());
LastValue += FirstValue;
CalcNumber.setText(Double.toString(LastValue));