Are you looking for a way to calculate flatness, represent flatness, measure flatness, or correct it?
For measuring, the above seem to be the go-to. A heightmap of points and a little visualization does wonders for demonstrating it, but depending on the kinds of features and requirements of the part, a meaningful measurement for it has to be picked from a variety of potential representations.