Convert a terminating or repeating decimal into a simplified fraction with an exactness check.
Category: Education · Math.