Delphi – E2006 PACKED not allowed here

Only the set, array, record, object, class, and file types are allowed to use the packed keyword. Unlike the 16-bit version of Delphi, packed has an impact on the record, object, and class layout.

program Produce;
type
  SmallReal = packed Real;
begin
end.

Packed cannot be applied to a real type; instead, you must use the smallest real type, type Single, to save storage.

program Solve;
type
  SmallReal = Single;
begin
end.