Is formic acid an Aldehyde or a Carboxylic acid?

Formic acid is methanoic acid. A carboxylic acid.