Scala 将BigDecimal转换为Long

待转换.asInstanceOf[Number].longValue

(Double转为Long也适用)

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