A unit is how an item is counted: Piece, Kg, Box, Litre, Pair and so on. It appears next to quantities on stock screens, orders, purchase invoices and documents, so everyone knows what "10" means.
Go to Purchase & Inventory → Categories & Attributes, then select Units.
Select Create Unit.
Enter the Unit Name, such as Box.
Select Create.
Open the product's Create or Edit page.
Under Inventory Tracking, choose the Unit.
Save.
Units are optional. To skip one, choose No unit.
When you import products, you can include a Unit column.
Use the unit you sell in. If you buy in cartons of 12 but sell single items, use Piece, and record purchases in pieces too.
Decimal quantities are fine for weight and volume units, such as 2.5 Kg.
Keep the list short and consistent. Use Kg everywhere, not Kg, kg and Kilogram.
On the Units list, select Edit to rename a unit or Delete to remove it. Renaming a unit updates it everywhere it's shown.