Convert Nsstring to float or integer for multiplication
===

Hi i need to multiply my two NSString value but referring various examples i'm confused and got nothing in it.So anyone help please.Here is my code

    NSString*qty=[NSString stringWithFormat:@"2"];
    NSString *rate=[NSString stringWithFormat:@"45.00"];
    
    float a =[[qtystr text] floatValue];
    float b=[[specvallabstr text] floatValue];

    float d=a * b;
        NSLog(@"%@",d);


its just an example of my string.Actually my string have characters and numbers but i separated the numbers and characters on my own using string separator.and i printed this qty and rate string and it displays only numbers.
