You find documentation for Postgres in the manual.
PostgreSQL's decimal
is not a floating point number, but an arbitrary precision number. Additions like sum()
are exact in Postgres.
The types decimal and numeric are equivalent. Both types are part of the SQL standard.
In contrast, MS Excel operates with limited accuracy. Quoting Wikipedia at the site @Tim provided:
As with other spreadsheets, Microsoft Excel works only to limited accuracy because it retains only a certain number of figures to describe numbers (it has limited precision)
Discrepancies are to be expected. You might try PostgreSQL's double precision type, which seems a better match. I doubt, you'll get a 100% match, though.