A new school will have 640 students. A construction code requires that new buildings have 2 restrooms for every 80 students in the building. Based on the construction code, what is the total number of restrooms the new school building must have?

The number of restrooms needed for 640 students is 640 students / 80 students/restroom = 8 restrooms.

The new school building must have 8 restrooms x 2 restrooms/student = <<8*2=16>>16 restrooms. Answer: \boxed{16}.