我想在我的项目中计算百分比,我使用double。建议我正确的数据类型来计算百分比的小数,如18%的5.368应该给出0.966的准确性。EditText kundan = (EditText) findViewById(R.id.kundan);EditText loss = (EditText)findViewById
我有这个代码,我有一个标签,我想写我的ProgressBar的百分比标签。我如何在foreach循环中做到这一点?lbl.Text = "Loading... %" + Convert.ToString("I will put here of percentage...");
} 注意:百分比公式将是整数百分比