From owner-freebsd-questions@FreeBSD.ORG Wed Oct 24 00:52:44 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 470384F4 for ; Wed, 24 Oct 2012 00:52:44 +0000 (UTC) (envelope-from gezeala@gmail.com) Received: from mail-da0-f54.google.com (mail-da0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 113218FC12 for ; Wed, 24 Oct 2012 00:52:43 +0000 (UTC) Received: by mail-da0-f54.google.com with SMTP id z9so2279476dad.13 for ; Tue, 23 Oct 2012 17:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=snwmfR3Gj1YzszhGZbS0iKs0IzmWPOcFPu69vBHilFs=; b=fCY6Ce+GUNdxj8pvkkYak3t5tnWZ94ohgc95bbKwUZOibIV4KZhZbMQ9ZZx2ENliB5 hl3gwDxhiXj5+mEQ97CdwqkfHcCZacZ/jrTtSu8a8mn+7SGJ/vox+3CJPHpYQ6Qfd8uk iMkcu/U6iJLhHwkGwbDXyS1UHmxCfeFx/+1TkzMKQBWrWjGhog7XmAgN2iojhtSv6lQu QVUKnKffHDvSKLZuXge661ov+gqx9Y2oWkLfqmTBXobraic0QVY4DfU8TyfEuIPjxO6M M7B6X6NJkx3ds7PYBxhAcEDXLbwnY2sa5I25OUbghIkEQSNrvVa31qK3qW00O9KuV7os G4FQ== Received: by 10.68.131.40 with SMTP id oj8mr46093868pbb.40.1351039962709; Tue, 23 Oct 2012 17:52:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.74.69 with HTTP; Tue, 23 Oct 2012 17:52:02 -0700 (PDT) In-Reply-To: <20121024000714.GG29440@ethic.thought.org> References: <20121023042007.GA14738@ethic.thought.org> <20121023085249.5c742ccc.freebsd@edvax.de> <20121024000714.GG29440@ethic.thought.org> From: =?ISO-8859-1?Q?Gezeala_M=2E_Bacu=F1o_II?= Date: Tue, 23 Oct 2012 17:52:02 -0700 Message-ID: Subject: Re: way way off topic To: Gary Kline Content-Type: text/plain; charset=ISO-8859-1 Cc: Olivier Nicole , Polytropon , FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2012 00:52:44 -0000 % change = ( (present - past) / past ) * 100 On Tue, Oct 23, 2012 at 5:07 PM, Gary Kline wrote: > On Tue, Oct 23, 2012 at 08:52:49AM +0200, Polytropon wrote: >> 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, ... > > > yo; I THInk this is it. around line 4542 in my ~/.HowTo file:: > > > > %%% find percent inc/dec [increase/decrease] between two numbers. > > Always figure the percentage of change relative to the original value! > For instance: * Suppose a certain item used to sell for seventy-five > cents a pound, you see that it's been marked up to eighty-one cents a > pound. What is the percent increase? > > First, I have to find the absolute > increase: > Reserved 81 - 75 = 6 > > The price has gone up six cents. Now I can find the > percentage increase over the original price. > > This percentage increase is the relative change: 6/75 = 0.08 > ...or an 8% increase in price per pound. > > > > So I was wrong about ages or speed; it's the % betwen two ints; > here, the inc/dec [or change] between 75 cents as compared to > an inflated increase of 81 cents. > > 1. find abs increase: 81-75 = 6; > 2 find the % increase over the *original* value. 6.0/75.0 > 3. percent increase using doubles is 0.08; so a markup of six > cents is an 8% rate. > > > so: going back to the ages example with john bein 8, jim, 22. > 22-8 is 14. > 14.0/8.0 = 1.750000 > > 175%. jim is 175% times older than john. which is what you found, > polyt. {I'll have to re-read your logic now that im awake..} > > Or, how much more, in % is 16t than 15, it is 1.0/15.0 which is 6%. > etc, etc. > > Hm. that's 0 for gary, 729 for polytrop!! > > Ah, life:: accept no substitutes. > > > > > -- > Gary Kline kline@thought.org http://www.thought.org Public Service Unix > Twenty-six years of service to the Unix community. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"