I am trying to understand whether I would prefer to cast to NUMERIC or to DECIMAL in PostgreSQL. I have read that they are basically functionally the same. One factor which might affect my decision is the default type when a decimal number is manually written, e.g.
SELECT percentage, 100.0
FROM grades
So the question is:
What type is 100.0 in the query above?
I was unable to find the answer in previous questions. I only know how to find the type of a column in a database, not an individual number. Thank you for the help.