An electromagnetic study of the staircase approximation of arbitrary shaped gratings is conducted with three different grating theories. Numerical results on a deep aluminum sinusoidal grating show that the staircase approximation introduces sharp maxima in the local field map close to the edges of the profile. These maxima are especially pronounced in TM polarization and do not exist with the ...