📜  Swift 代码示例中的十进制到双精度转换

📅  最后修改于: 2022-03-11 15:00:58.454000             🧑  作者: Mango

代码示例1
let someDouble = Double(truncating: someDecimal as NSNumber)