Re: strtonum(3) in FreeBSD?

From: <sthaug_at_nethelp.no>
Date: Sat, 16 Apr 2005 16:10:44 +0200
> > K may so be 1024, but M may not, because M must be 1000000,
> > always. SI prefices are the same among all units.
> 
> When talking about digital data storage K means times 2^10, M means 
> times 2^20, G means 2^30 and T means 2^40.
> 
> 1K = 1 * 2^10 bytes = 1024 bytes
> 1M = 1 * 2^20 bytes = 1048576 bytes
> 1G = 1 * 2^30 bytes = 1073741824 bytes

The disk drive manufacturers seem to disagree with you. For instance
Seagate:

http://www.seagate.com/products/discselect/glossary/index.html#cap

"Most disc drive companies, including Seagate, calculate disc capacity
based on the assumption that 1 megabyte = 1000 kilobytes and 1
gigabyte=1000 megabytes."

My own conclusion is simply that there is no universal agreement which
says that kilo, mega, giga and tera mean something different (using
powers of 2) when applied to data storage. 

Steinar Haug, Nethelp consulting, sthaug_at_nethelp.no
Received on Sat Apr 16 2005 - 12:10:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:32 UTC