How do you convert from decimal form to fraction form?

I know the ones out of 100 but for example I got 4.5 for an answer but the answer key said 9/2 so I was wondering if there was a way to convert it to that.
11 answers 11