How do you convert a decimal into a fraction?

Example: Let's say you have the decimal 0.25, which is read as 25 one-hundredths. You can convert this to the fraction 25/100, and then simplify to 1/4.