Leave a Reply

14 Comments on "Objective C Programming Tutorial – 52 – Number Object Methods"

Notify of
avatar

grodobean
Guest
grodobean
4 years 1 month ago

Could I tweak the code to compare booleans(bool) and intergers(int) I know it is doesn't sound possible.

Alexey Ilin
Guest
Alexey Ilin
4 years 5 months ago

objects? Hope there will be better reasons to use those , It works to compare int and float made basic way

MrBezman41
Guest
MrBezman41
4 years 6 months ago

BOOL and bool

Polofiesta12
Guest
Polofiesta12
5 years 2 months ago

they are the same thing. YES==TRUE==true==1 lol. NO==FALSE==false==0. you dont have to put "if([buckyInt isEqualToNumber: buckyFloat] == YES)" you can just call the method as it will return yes which will equate to true and it will run the code inside the if statement.

Jared Wright
Guest
Jared Wright
5 years 3 months ago

Is the only reason to use NSNumber is to use NSArray, or am I missing something?

TheAnubite
Guest
TheAnubite
5 years 4 months ago

whats the difference between YES and TRUE ?

Adwait Paranjpe
Guest
Adwait Paranjpe
5 years 6 months ago

As every time you create an object and then release it from the memory.
Why for the number object, there is an exception? The number objects "buckyInt" & "buckyFloat" are created but they are not released from the memory.
Is it a common practice? Is it okay to do so for the number objects only?

Barney Chambers
Guest
Barney Chambers
5 years 7 months ago

What is the numbers are the same and you do the whole NumberOrderedAscending thing.

kld0093
Guest
kld0093
6 years 3 months ago

Thank you

notknowntoman
Guest
notknowntoman
6 years 8 months ago

@DomDozed he probably just came across the tut

wpDiscuz