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


Groups > comp.lang.php > #12550

Re: Math Formula Question - Need Ideas

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!212.27.60.7.MISMATCH!feeder1-1.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="UTF-8"
Message-ID <4768632.UfNXPBq84B@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Organization PointedEars Software (PES)
Date Sun, 05 Jan 2014 18:53:34 +0100
User-Agent KNode/4.11.3
Content-Transfer-Encoding 8Bit
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Subject Re: Math Formula Question - Need Ideas
Newsgroups comp.lang.php
References <XnsA2ABA6A53901Farbpenyahoocom@78.46.70.116>
MIME-Version 1.0
Lines 28
NNTP-Posting-Date 05 Jan 2014 18:53:35 CET
NNTP-Posting-Host 2e824896.newsspool1.arcor-online.net
X-Trace DXC=Ml:cmif:43`016@cHD@m;jic==]BZ:afn4Fo<]lROoRankgeX?EC@@`0E8X5N4L0EbDZm8W4\YJNlYUVHKH;GI^gHia>lF8F3kgdHO]k8VWCNc
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.php:12550

Show key headers only | View raw


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.]


PointedEars
-- 
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
  -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)

Back to comp.lang.php | Previous | Next — Previous in thread | Next 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