我正在创建 Android 应用程序,我需要使用 textView 打印 float 。有人能告诉我应该使用哪个功能吗?
最佳答案
试试这个:
//Retrieve the TextView and set the text
Float yourFloat = 1.0;
TextView textView = (TextView) findViewById(R.id.yourtextview);
textView.setText(yourFloat.toString());
关于java - 打印 float ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7050472/