Working on an interview task to identify improvements to an open source repository. There is a file that is full of manually typed out floating point approximations of rational numbers. Is this a reasonable suggestion to get rid of them?
template<int Numerator, int Denominator>
constexpr float RATIONAL()
{
return static_cast<float>(Numerator) / static_cast<float>(Denominator);
}