From owner-freebsd-current@FreeBSD.ORG Sat Apr 16 14:10:47 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 906E716A4CE for ; Sat, 16 Apr 2005 14:10:47 +0000 (GMT) Received: from bizet.nethelp.no (bizet.nethelp.no [195.1.209.33]) by mx1.FreeBSD.org (Postfix) with SMTP id 28AF143D5D for ; Sat, 16 Apr 2005 14:10:46 +0000 (GMT) (envelope-from sthaug@nethelp.no) Received: (qmail 13593 invoked by uid 1001); 16 Apr 2005 14:10:44 -0000 To: ryans@gamersimpact.com From: sthaug@nethelp.no In-Reply-To: Your message of "Sat, 16 Apr 2005 08:51:25 -0500" References: <4261185D.1060202@gamersimpact.com> X-Mailer: Mew version 1.05+ on Emacs 19.34.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Sat, 16 Apr 2005 16:10:44 +0200 Message-ID: <13591.1113660644@bizet.nethelp.no> 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 14:10:47 -0000 > > 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@nethelp.no