I need to pass some float value to the NSString string. Which Deputy should I use instead of %f in order for the code (below) to work correctly?
#import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { float x = 323.13; NSString *text1 = [NSString stringWithFormat: @"Переменная x = " @"%.f" , "x"]; NSLog(text1); } return 0; } Output : переменная x = 0
It is necessary that there be a переменная x = 323.13 What is needed to fix this?