Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <25283432.POFBRBLUIU@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Mon, 06 Jan 2014 20:47:53 +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+&. <4768632.UfNXPBq84B@PointedEars.de> MIME-Version: 1.0 Lines: 45 NNTP-Posting-Date: 06 Jan 2014 20:47:55 CET NNTP-Posting-Host: 16651c6b.newsspool1.arcor-online.net X-Trace: DXC=ZgOVQKKcN:jJ00P1S40fZgic==]BZ:afn4Fo<]lROoRankgeX?EC@@`:HSIQ^WeSTbDZm8W4\YJNlYUVHKH;GI^g4lJ0R[J6TZhSFU?a\;5gYo X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.php:12559 Adrienne Boswell wrote: > Thomas 'PointedEars' Lahn 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 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