How do you handle an input like 2.45?

How do you convert it to a numerator and a denominator?

The shell arithmetic operators won't work on it!