int转bigdecimal

BigDecimal number = new BigDecimal(0);
int value=score;
number=BigDecimal.valueOf((int)value);

 

bigdecimal转int

BigDecimal b=new BigDecimal(45.45);

int a = b.intValue();

相关文章:

  • 2021-12-06
  • 2021-12-24
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-09-13
猜你喜欢
  • 2022-01-18
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-12-11
  • 2021-07-17
相关资源
相似解决方案