Flatness can be whatever is desired by the specifications. For residential, there is usually not a specified flatness, though a "rule of thumb" commonly used but rarely checked and enforced was 1/4" in 10 feet. This is not truly a flatness profile specification in today's vernacular.
Floor flatness is generally specified now by Ff (flatness) and FL (levelness) profiling criteria. ACI accepts this protocol and there are accepted standards for the testing. As an example, a specifier might state a flatness requirement of Ff=25 and levelness of FL=15. Some would consider this to be close to the 1/4" in 10 feet requirement, but there is no true correlation.
Keep in mind (noting NickDemos's statement) that flatness and levelness are different. A sloped floor can have a flat profile. Flatness refers to the floor surface profile, not the state of the levelness of the floor.