Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Turing Calculating Percentage
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
youknowwho




PostPosted: 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. Confused
Sponsor
Sponsor
Sponsor
sponsor
Geostigma




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: Thu May 10, 2007 2:57 pm   Post subject: RE:Turing Calculating Percentage

Isn't tax 14% now?
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: