From owner-freebsd-current@FreeBSD.ORG Sat Apr 16 13:51:07 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5354416A4CE for ; Sat, 16 Apr 2005 13:51:07 +0000 (GMT) Received: from mailserv1.neuroflux.com (ns2.neuroflux.com [204.228.228.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEEF543D1D for ; Sat, 16 Apr 2005 13:51:06 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 58607 invoked by uid 1003); 16 Apr 2005 13:51:06 -0000 Received: from ryans@gamersimpact.com by mailserv1.neuroflux.com by uid 89 with qmail-scanner-1.22 (clamscan: 0.65. spamassassin: 2.60. Clear:RC:1(63.231.170.25):. Processed in 1.24885 secs); 16 Apr 2005 13:51:06 -0000 Received: from unknown (HELO ?192.168.0.5?) (63.231.170.25) by mailserv1.neuroflux.com with SMTP; 16 Apr 2005 13:51:04 -0000 Message-ID: <4261185D.1060202@gamersimpact.com> Date: Sat, 16 Apr 2005 08:51:25 -0500 From: Ryan Sommers User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Thorsten Glaser References: <163.1113592094@natasha.tepid.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: tech@openbsd.org cc: freebsd-current@freebsd.org Subject: Re: strtonum(3) in FreeBSD? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Apr 2005 13:51:07 -0000 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