that's weird, because there should be a 32bit version of fabs for floats: http://www.cplusplus.com/reference/cmath/fabs/