Below is how I would have previously truncated a float to two decimal places
NSLog(@\" %.02f %.02f %.02f\", r, g, b);
I checked the docs an
less typing way:
func fprint(format: String, _ args: CVarArgType...) { print(NSString(format: format, arguments: getVaList(args))) }