m is an integer and needs abs to get absolute value.