-
How Can I limit decimal places to 2?
Here's the code:
<%
Dim millerProd, totalProd
Dim millPercentage
millerProd=visitInfoMain.Fields.Item("millerProduct").Value
totalProd=visitInfoMain.Fields.Item("totalProduct").Value
millPercentage = (millerProd / totalProd) * 100
%>
<%= millPercentage %>
How can I limit the display to 2 decimal points?
-
<%=formatnumber(millpercentage,2)%> should do the trick.
-
You're right. That did the trick.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks