白板的微信
以下是一些更正-//for 3145.559706迅捷3let num: CGFloat = 3145.559706print(String(format: "%f", num)) = 3145.559706print(String(format: "%.f", num)) = 3145print(String(format: "%.1f", num)) = 3145.6print(String(format: "%.2f", num)) = 3145.56print(String(format: "%.02f", num)) = 3145.56 // which is equal to @"%.2f"print(String(format: "%.3f", num)) = 3145.560print(String(format: "%.03f", num)) = 3145.560 // which is equal to @"%.3f"对象@"%f" = 3145.559706@"%.f" = 3146@"%.1f" = 3145.6@"%.2f" = 3145.56@"%.02f" = 3145.56 // which is equal to @"%.2f"@"%.3f" = 3145.560@"%.03f" = 3145.560 // which is equal to @"%.3f"等等...