We should see what the SQL standard says (and/or what Postgres does) for this. I wonder if the type is fixed as NUMERIC/DECIMAL or if it's an INTEGER or LONG if the scale is 0.