From owner-freebsd-current@FreeBSD.ORG Sat Apr 16 16:49:15 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 15B0216A4CE for ; Sat, 16 Apr 2005 16:49:15 +0000 (GMT) Received: from mx.nsu.ru (mx.nsu.ru [212.192.164.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7851543D55 for ; Sat, 16 Apr 2005 16:49:14 +0000 (GMT) (envelope-from danfe@regency.nsu.ru) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.50) id 1DMqWn-0005vs-EG; Sat, 16 Apr 2005 23:52:17 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.13.3/8.13.1) with ESMTP id j3GGo6gB071848; Sat, 16 Apr 2005 23:50:06 +0700 (NOVST) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.13.3/8.13.1/Submit) id j3GGo009070790; Sat, 16 Apr 2005 23:50:00 +0700 (NOVST) (envelope-from danfe) Date: Sat, 16 Apr 2005 23:50:00 +0700 From: Alexey Dokuchaev To: sthaug@nethelp.no Message-ID: <20050416165000.GA69374@regency.nsu.ru> References: <4261185D.1060202@gamersimpact.com> <13591.1113660644@bizet.nethelp.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13591.1113660644@bizet.nethelp.no> User-Agent: Mutt/1.4.2.1i cc: ryans@gamersimpact.com 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 16:49:15 -0000 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! ./danfe