UIeasier
功能複雜,但UI可以很簡單!
2013年11月12日 星期二
Android double no scientific notation
不想印出科學符號
ex: 1.33E10 -> 13300000000
Double temp=Double.parseDouble(textview.getText().toString());
s=new
BigDecimal
(temp).
toPlainString
();
textview.setText(s);
另一個解法是使用 DecimalFormat
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言