From owner-freebsd-questions@FreeBSD.ORG Tue Oct 23 06:52:51 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9AF274B0 for ; Tue, 23 Oct 2012 06:52:51 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 560DE8FC08 for ; Tue, 23 Oct 2012 06:52:51 +0000 (UTC) Received: from r56.edvax.de (port-92-195-110-131.dynamic.qsc.de [92.195.110.131]) by mx01.qsc.de (Postfix) with ESMTP id 168843CAEA; Tue, 23 Oct 2012 08:52:50 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q9N6qnum002194; Tue, 23 Oct 2012 08:52:49 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 23 Oct 2012 08:52:49 +0200 From: Polytropon To: Olivier Nicole Subject: Re: way way off topic Message-Id: <20121023085249.5c742ccc.freebsd@edvax.de> In-Reply-To: References: <20121023042007.GA14738@ethic.thought.org> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Gary Kline , FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2012 06:52:51 -0000 On Tue, 23 Oct 2012 11:31:18 +0700, Olivier Nicole wrote: > Gary, > > On Tue, Oct 23, 2012 at 11:20 AM, Gary Kline wrote: > > > > apologies up front for this math type quandary. I had it in a std C program, > > but 3+ hours of grepping havent found it. I would have bet my last cent that I > > had a summary Somewhere, but cant find that either. > > > > here is the problem as best I can remember it. > > > > > > let's say that john is 8 and his older friend, jim, is 22. > > how much older is exact percentage terms is jim? > > That should be 22/8=2.75 > Jim is 275% older than John Jim is 175% _older_. Why? Because 100% older means 16 years, as 100% refers to 8 years (8+8=16, 200% older is 8+8+8=24). Percentage is always a reference to something else, in this question, Jim's age in relation to John's. The word "older" means "adding percentage", refering to the base value of 8, "divided in 100 parts" (floating point considerations aside), to finally reach the value 22. If the question would be different, say, "What's the percentage of John's age regarding Jim's age?" In that case, it would be 8/22=0.3636 being 36%. Obvious: John's age is approximately 1/3 of Jim's age. The easiest way for creating the proper calculation is to refer to the equation percentage * 100 percentage value = ---------------- base value and resolve it to whatever is required. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...