G-2210: Avoid declaring NUMBER variables, constants or subtypes with no precision.

Minor

Efficiency

Reason

If you do not specify precision NUMBER is defaulted to 38 or the maximum supported by your system, whichever is less. You may well need all this precision, but if you know you do not, you should specify whatever matches your needs.

Example (bad)

CREATE OR REPLACE PACKAGE BODY constants_up IS
   co_small_increase CONSTANT NUMBER := 0.1;

   FUNCTION small_increase RETURN NUMBER IS
   BEGIN
      RETURN co_small_increase;
   END small_increase;
END constants_up;
/

Example (good)

CREATE OR REPLACE PACKAGE BODY constants_up IS
   co_small_increase CONSTANT NUMBER(5,1) := 0.1;

   FUNCTION small_increase RETURN NUMBER IS
   BEGIN
      RETURN co_small_increase;
   END small_increase;
END constants_up;
/