Catalyzes the NAD(+)-dependent oxidation of formate to carbon dioxide. Involved in the cell stress response. formate + NAD(+) = CO2 + NADH Homodimer. Belongs to the D-isomer specific 2-hydroxyacid dehydrogenase family. FDH subfamily.