Hi I need alittle help. I am doing a VB.Net class and I am having trouble with code for calculating. I dont know hoe to do the code for it. I have to have a calculation for Original Price, Discount rate and New Price. Plus I dont know how to display dollar signs or two decimal places in the new and discount price amounts. Can someone help me.
Thanks, Ed

To do calculations I would need more info, but to add a $ and two decimal you must format the output.

dim UnitPrice as Double = 9.99
lableTotal.text=String.Format("{0:c}", UnitPrice)

This will display $9.99

Hope this helps...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.