I have a few double values..35.44, 35.66 . I need to round them, and the result should be as NSNumber. The result should be 35.4 , 35.7. So how to do that ? Once again, the result should be as NSNumber, not NSString !
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 could print it to a string and use the format string to clip it to one decimal point.