Author |
Message |
youknowwho
|
Posted: Wed May 09, 2007 9:52 pm Post subject: 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.  |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Geostigma
|
Posted: Wed May 09, 2007 9:57 pm Post subject: RE:Turing Calculating Percentage |
|
|
Well you need more information because what is 5000 a percent of? 10000 dollars? |
|
|
|
|
 |
zylum

|
Posted: Wed May 09, 2007 11:01 pm Post subject: 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

|
Posted: Wed May 09, 2007 11:10 pm Post subject: 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,
Turing: |
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

|
Posted: Thu May 10, 2007 12:05 pm Post subject: 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

|
Posted: Thu May 10, 2007 2:57 pm Post subject: RE:Turing Calculating Percentage |
|
|
Isn't tax 14% now? |
|
|
|
|
 |
|