snowboardr
Programmer
I need to know how to convert a decimal to an integer without removing the cents off the price. I am trying to figure out the % of profit, but it removes the .45 off of 345.45 when I add CINT or CLNG to it...
www.sitesd.com
ASP WEB DEVELOPMENT
Code:
If frmPrice > 0 AND frmYourPrice > 0 then
intPercentProfit = frmPrice / frmYourPrice
intPercentProfit = intPercentProfit * 100
intPercentProfit = intPercentProfit - 100
intPercentProfit = FormatNumber(intPercentProfit,2) & "% profit"
End If
www.sitesd.com
ASP WEB DEVELOPMENT