Implemented fraction creation close to a given decimal.