If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Use decimal for that as well. You would write 10.5% as .105
you would need to use decimal (4,3) for that as you might need to represent a 100% or more markup.
Also you might find you need to use the round() function when doing your calculations to get the right number of decimals for your price.
yeah, i realize that, dave, it's just that he said he wanted to represent his price as decimal(4,2), and i concluded that he assumed this was 4 digits left of the decimal point and two to the right, so i thought i would clarify for his sake