
-----------------------------------
youknowwho
Wed May 09, 2007 9:52 pm

Turing Calculating Percentage
-----------------------------------
Can anyone plz help me with turing im really confused. I was wondering what code i should uee to calculae percentage for given money eg. $5000 * 0.15%= in code. I could really use your help guys.  :?

-----------------------------------
Geostigma
Wed May 09, 2007 9:57 pm

RE:Turing Calculating Percentage
-----------------------------------
Well you need more information because what is 5000 a percent of? 10000 dollars?

-----------------------------------
zylum
Wed May 09, 2007 11:01 pm

RE:Turing Calculating Percentage
-----------------------------------
$5000 * 0.15% is the same as $5000 * 0.0015.  A percent is just a number divided by 100, so 0.15% = 0.15/100 = 0.0015.

-----------------------------------
Cervantes
Wed May 09, 2007 11:10 pm

RE:Turing Calculating Percentage
-----------------------------------
You want to calculate 0.15% of $5000? Sure, that's equal to 5000 * 0.15/100 = $7.5.

In code,

var interest := 5000 * 0.15 / 100

I just assumed your calculating interest, since 0.15% is pretty low.

edit: Wow, nine minute delay. See guys, Firefox sucks. Look what tabbed browsing does to the internet!

-----------------------------------
Clayton
Thu May 10, 2007 12:05 pm

RE:Turing Calculating Percentage
-----------------------------------
Actually, I think he may be talking about calculating tax on an item. In which case that's 15%. I think he's just confused about it.

-----------------------------------
zylum
Thu May 10, 2007 2:57 pm

RE:Turing Calculating Percentage
-----------------------------------
Isn't tax 14% now?
