How do you calculate what percentage a number is out of another number?

To calculate that answer to "a is what percentage of b" divide a by b, then move the decimal point two places to the right.

In more rigorous terms: divide a by b, then multiply by 100. But the answer is the same either way.