How to compare string with float? in Objective C

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-04-03T06:40:14Z Indexed on 2010/04/03 6:43 UTC
Read the original article Hit count: 266

Filed under:
|
|

How would you? I'm having problems. Thanks.

I'm currently using

if (myString == myfloat) {
// do something but this won't work
}

OR

if ([myString == myFloat]) {
// do something but this won't work
}

Thanks!

© Stack Overflow or respective owner

Related posts about string

Related posts about float