Hello, According to specification, atan2(0,0) returns 0. The 'mathfp' implementation of 'atan2' returns NaN when both arguments are zero. The same is true for 'atan2f'. BR, Sergei Organov.