2006 UPC 411.2.1 requires floor drains in "Toilet rooms containing two or more water closets or a combination of one water closet and one urinal, except in a dwelling unit"
I don't have a copy of the IPC handy so I'm not sure of it's requirements.
UPC requires floor drains in toilet rooms containing:
(1) Two or more water closets; or
(2) Combination of one water closet and one urinal
I am not sure what the other codes require...