int a=12;

double b=(double)a;

or

double c=Double.valueOf((double)a);

string a_s="12";

double b_d=Double.parseDouble(a);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2022-03-02
  • 2021-08-11
  • 2022-01-18
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2021-05-22
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-10-31
  • 2021-05-22
  • 2022-12-23
相关资源
相似解决方案