just like my question, How can i convert decimal into octal in objective c?
can somebody help me? it’s make me dizy
just like my question, How can i convert decimal into octal in objective c?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to initialize a new
NSStringobject using the right format specifier.Like :
This will create an autoreleased
NSStringobject containing octal string representation ofi. In case you start from aNSStringcontaining a decimal number representation, you should first retrieve the number using :
Here is a link to the format specifiers reference.
Hope this helps.