I want to calculate a logarithm in iOS. Can Objective-C do this?
                +1 
                A: 
                
                
              
            You can use the C functions for calculating logarithms
#import <math.h>
double myLog = log(10);
You can also see here: What kind of logarithm functions / methods are available in objective-c / cocoa-touch?
                  Brock Woolf
                   2010-09-24 05:33:15
                
              
                
                A: 
                
                
              
            Yes.
Objective C is a superset of ANSI C, and iOS supports using most of the usual C libraries.
Thus, you can use the C library math.h, which include several log functions (base10, base e, float result, double result, etc.)
                  hotpaw2
                   2010-09-24 05:40:42