public void printer(double number) {
        if ((number - Math.floor(number)) == 0) {
            text.setText(String.valueOf((int)number));
        } else {
            text.setText(String.valueOf(number));
        }
    }