fr/c/comp_numeric: Replaced if/elseif statement with case