I need help obj-C :     - (NSString *)_stringToFloat:(NSNumber *)number {
        if (number && number > 0) {
            return [NSString stringWithFormat:@"%.2f",[number floatValue]];
        }
        return @"0.0";
    }

using 

    _lblAppointmentFee.text = [[NSString alloc]initWithFormat:@"%@",[self_stringToFloat:[_dicObject objectForKeyNotNull:@"rate"]]];
how do I can return 5.21 = 5.21 but 5.00 = 5