Well here is my doubt

I'm programming a tool that simplifies fractions

but I'm not so good in math

I need to know what are things i should keep in mind

for example here are some things I have figured out (correct me if I'm wrong)

*Only simplify when numerator is bigger than denominator

*Only simplify when both numerator and denominator are odd or when both are even.

any other rules?

thanks!