待转换.asInstanceOf[Number].longValue
(Double转为Long也适用)
Scala 将BigDecimal转换为Long
原文:https://www.cnblogs.com/zhangtianyuan/p/8296397.html