textview
안에있는 번호를 아래의 예와 같이 만드는 방법이 있습니까?1,293.34가 안드로이드의 textview에서 129.33이되게하는 방법?
input > output:
123.23 -> 12.32
4,593.78 -> 459.37
그것은 숫자가 거꾸로 계산기 버튼과 같은 백 스페이스 기능 (앞으로
내가이
// Get edit text characters
String textInBox = atmdisplay.getText().toString();
if(textInBox.length() > 0)
{
//Remove last character//
String newText = textInBox.substring(0, textInBox.length()-1);
// Update edit text
atmdisplay.setText(newText);
}
}
같은 샘플 코드를 시도 juz 마지막 숫자를 삭제하고 소수점을 이동입니다 마지막 자릿수에서 시작하여 전체 자릿수를 하나씩 삭제합니다.
나누어 10 진수 – therealprashant