Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #12559

Re: Math Formula Question - Need Ideas

Message-ID <25283432.POFBRBLUIU@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2014-01-06 20:47 +0100
Subject Re: Math Formula Question - Need Ideas
Newsgroups comp.lang.php
References <XnsA2ABA6A53901Farbpenyahoocom@78.46.70.116> <4768632.UfNXPBq84B@PointedEars.de> <XnsA2ACA22583698arbpenyahoocom@78.46.70.116>

Show all headers | View raw


Adrienne Boswell wrote:

> Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote
>> Adrienne Boswell wrote:
>>> Someone goes to a store and has $100.00 worth of items.  The merchant
>>> gives the customer a 10% discount, so only $90.00 is sent to the
>>> bank. Of the original amount, $10.00 goes to the customer for the
>>> discount, $80.00 goes to the merchant, $10.00 goes for a processing
>>> fee.  But those amounts have to be calced on the original amount, not
>>> what the bank got. I need a formula to find the original amount if I
>>> have the percentage (10%) and the amount the bank got ($90.00).  I
>>> know in my head that the original amount is $100.00, but I have to do
>>> it programatically.
>>> 
>>> I know this is probably dead simple, but I just can't get my head
>>> around it.
>> 
>> Do your own homework.
>> 
>> [You cannot be serious asking a question regarding simple arithmetic
>> (percentage calculation, for crying out loud) in a newsgroup for a
>> programming language — without showing any attempt to solve it by
>> yourself, I should add.]
> 
> Yes, I can be serious asking a question like this.  Have you ever looked
> at something you spelled correctly, and it doesn't look right?
> Sometimes, I think something is harder than it is, and confuse myself.
> That's what happened here.

Sigh. [psf 10.1]  You have a problem with basic arithmetic, not PHP.  Why 
are you asking in a PHP newsgroup (other than to troll here)?  *At least* 
you should have the decency to ask in a *math* newsgroup (where people will 
tell you, iff they do not ignore you, that you learn these things in 
highschool – or its national equivalent).

Please read <http://www.catb.org/~esr/faqs/smart-questions.html> before you 
post again.


PointedEars
-- 
    realism:    HTML 4.01 Strict
    evangelism: XHTML 1.0 Strict
    madness:    XHTML 1.1 as application/xhtml+xml
                                                    -- Bjoern Hoehrmann

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Math Formula Question - Need Ideas Adrienne Boswell <arbpen@yahoo.com> - 2014-01-05 00:26 +0000
  Re: Math Formula Question - Need Ideas Richard Damon <Richard@Damon-Family.org> - 2014-01-04 19:33 -0500
    Re: Math Formula Question - Need Ideas Allodoxaphobia <knock_yourself_out@example.net> - 2014-01-05 17:56 +0000
      Re: Math Formula Question - Need Ideas Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-05 13:15 -0500
        Re: Math Formula Question - Need Ideas John Smith <johnsmithjsm@live.com> - 2014-01-07 14:57 +0000
  Re: Math Formula Question - Need Ideas The Natural Philosopher <tnp@invalid.invalid> - 2014-01-05 00:37 +0000
    Re: Math Formula Question - Need Ideas Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-04 20:20 -0500
  Re: Math Formula Question - Need Ideas Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-05 00:54 +0000
    Re: Math Formula Question - Need Ideas Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-04 20:22 -0500
      Re: Math Formula Question - Need Ideas Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-05 16:40 +0000
        Re: Math Formula Question - Need Ideas Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-05 13:16 -0500
          Re: Math Formula Question - Need Ideas Adrienne Boswell <arbpen@yahoo.com> - 2014-01-05 23:09 +0000
  Re: Math Formula Question - Need Ideas Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-05 18:53 +0100
    Re: Math Formula Question - Need Ideas Adrienne Boswell <arbpen@yahoo.com> - 2014-01-05 22:56 +0000
      Re: Math Formula Question - Need Ideas Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-05 18:11 -0500
      Re: Math Formula Question - Need Ideas Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-06 20:47 +0100

csiph-web