View Single Post
Old 02-13-2013, 07:25 PM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,036
Thanks: 197
Thanked 2,411 Times in 2,389 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
This is a double posting
http://www.codingforums.com/showthread.php?t=287583
which is against the forum rules. Please do not start a second thread on the same subject.

You have already had an answer in the first thread. I don't see why you have a problem with a decimal point, but there are so many errors that the code will not work at all.

You can enter a markup percentage as 30 and then divide that by 100 to get .3, add 1 to get 1.3 which you then multiply the first price by to get the uplifted price. Naturally you will need to check that the user does not enter .3 in the field!
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.

Last edited by Philip M; 02-13-2013 at 07:31 PM..
Philip M is offline   Reply With Quote