Machine screw diameter is measured on the outside of the threads.
Screws with an Allen wrench drive.
Screws with machine threads for use with a nut or in a tapped hole.