How to Avoid Scientific Notation in Double?

前端 未结 5 1480
走了就别回头了
走了就别回头了 2020-11-30 10:23

Here is my simple code

        @Override
    public void onClick(View v) {
        try {
            double price = Double.parseDouble(ePrice.getText().toStr         


        
5条回答
  •  情歌与酒
    2020-11-30 10:49

    Check answer here. You can write

    moneyToGet.setText(String.format("%.0f", priceValue));
    

提交回复
热议问题