normalize +- PI macro from kha