In English, we have: To simulate this situation, we assign 29 1s and 21 0s . This means that we labeling 29 members 1s and 21 members 0s in an experiment.
How does Spanish handle plural numbers in its sentences 1s and 0s?
You would say
The exceptions are the plurals of
Numbers in plural are written in words. If it's too cumbersome, you can prepend “números” and write them in figures, as in “123 números 0”.
The answer of Angus is correct, I would only like to add that in written Spanish is not correct or usual to use numbers (as digits) but words. The correct translation for the sentence you wrote would be: