Absolute Value

iPhone SDK Tips & Tricks

float floatValue = -123.45678;
NSLog(@"%f", fabsf(floatValue)); //output: 123.45678