float和double相等问题,数据转换问题

201 阅读1分钟

使用bigdecimal

数据强制转换

  • 内存溢出
  • 精度丢失
  • int和int相乘转long会出现错误:相乘过后再数据转换已经丢失了精度