Scala 将BigDecimal转换为Long

待转换.asInstanceOf[Number].longValue

(Double转为Long也适用)

posted @ 2018-01-16 14:21  右介  阅读(532)  评论(0编辑  收藏  举报