Date: Sat, 16 Apr 2005 08:51:25 -0500 From: Ryan Sommers <ryans@gamersimpact.com> To: Thorsten Glaser <tg@66h.42h.de> Cc: freebsd-current@freebsd.org Subject: Re: strtonum(3) in FreeBSD? Message-ID: <4261185D.1060202@gamersimpact.com> In-Reply-To: <Pine.BSO.4.61L.0504160159060.28864@odem.66h.42h.de> References: <163.1113592094@natasha.tepid.org> <Pine.BSO.4.61L.0504160159060.28864@odem.66h.42h.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Thorsten Glaser wrote: > SI and IEC 60027-2 say: > > k = 1000 > M = 1000000 > m = 1/1000 > > 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 If you think otherwise go google "what is a megabyte". Didn't you ever wonder why your computer with 512 megabytes of ram always showed 536870912 bytes? Or even hop on a FreeBSD box and do a: dd if=/dev/random of=bigfile bs=1 count=1M Watch as it reports "1048676 blocks in/out". -- Ryan Sommers ryans@gamersimpact.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4261185D.1060202>