Fix warnings regarding using abs with floating point numbers