Possible Duplicate:
Adding large Power values in Xcode
Am new to Objective C (iOS). I want to find the power of decimal number but the method pow (x,y) crashes the program.
It seems this method don’t work for decimal number. I want to display this number in text field 6.6428 x 10^ -21. how can i do that? Thanks
If you’re using decimals (floats) you need to use powf()