FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Math Formula Question - Need Ideas
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Math Formula Question - Need Ideas [message #184535 is a reply to message #184526] Mon, 06 January 2014 19:47 Go to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Adrienne Boswell wrote:

> Thomas 'PointedEars' Lahn <PointedEars(at)web(dot)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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: foreach problem part two
Next Topic: json testing suggestions
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 19:13:44 GMT 2024

Total time taken to generate the page: 0.03984 seconds