Scala 将BigDecimal转换为Long

待转换.asInstanceOf[Number].longValue

(Double转为Long也适用)

原文地址:https://www.cnblogs.com/zhangtianyuan/p/8296397.html