About the Data Storage Converter
Drive makers count in powers of 1,000 (a 1 TB drive is 10¹² bytes); many operating systems count in powers of 1,024. That is why a “1 TB” drive shows as about 931 GiB.
Convert to the base unit, then divide by the target unit’s size. Factors are exact where the unit has a legal definition (1 inch = 2.54 cm, 1 lb = 0.45359237 kg).