how do you type the line over a repeating number?
Are you looking to use a number like 0.33333... in your code and have it treated as 1/3? Are you using Mathematica or Wolfram|Alpha?
Here is an article about how to write repeating decimals in Wolfram|Alpha:
Repeating Decimals can always be written as a fraction. There is some code for this online already: