摘要: 1.NSString 的 doubleValue 方法 let str = "123.45" let floatValue = CGFloat((str as NSString).doubleValue) print(floatValue) // 输出 123.45 2.使用 NumberForma 阅读全文
posted @ 2025-01-14 10:50 懂事长qingzZ 阅读(23) 评论(0) 推荐(0) 编辑