From owner-freebsd-current@FreeBSD.ORG Sat Apr 16 17:17:30 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 6636216A4CE for ; Sat, 16 Apr 2005 17:17:30 +0000 (GMT) Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id C033943D39 for ; Sat, 16 Apr 2005 17:17:29 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) j3GHHRVk045294; Sat, 16 Apr 2005 19:17:27 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.3/8.12.9) with ESMTP id j3GHHRZe027310; Sat, 16 Apr 2005 19:17:27 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.3/8.13.1/Submit) id j3GHHQuf027309; Sat, 16 Apr 2005 19:17:26 +0200 (CEST) (envelope-from wb) Date: Sat, 16 Apr 2005 19:17:26 +0200 From: Wilko Bulte To: Alexey Dokuchaev Message-ID: <20050416171726.GA27283@freebie.xs4all.nl> References: <4261185D.1060202@gamersimpact.com> <13591.1113660644@bizet.nethelp.no> <20050416165000.GA69374@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050416165000.GA69374@regency.nsu.ru> X-OS: FreeBSD 4.11-STABLE User-Agent: Mutt/1.5.6i X-Virus-Scanned: by XS4ALL Virus Scanner cc: ryans@gamersimpact.com cc: tech@openbsd.org cc: sthaug@nethelp.no 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 17:17:30 -0000 On Sat, Apr 16, 2005 at 11:50:00PM +0700, Alexey Dokuchaev wrote.. > On Sat, Apr 16, 2005 at 04:10:44PM +0200, sthaug@nethelp.no wrote: > > > > 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." > > So their drives look bigger than they really are. Duh! Whether you like it or not, this is pretty much the industry standard in the storage industry. Not much option but to get used to it.. -- Wilko Bulte wilko@FreeBSD.org