scala将double转换为long

https://stackoverflow.com/questions/19647525/how-to-convert-any-a-number-to-a-long

x.asInstanceOf[Number].longValue

你可能感兴趣的:(java)