Formatting Numbers in Database Results

R

RoadKill

Okay, so I have several averages that are being displayed in my results page.
How can I get it formatted to two decimal places instead of the 14 that it
presently has?

4.78 looks a lot cleaner than 4.77777777777778

We are running V2003.

Thank you
 
R

RoadKill

It is ASP via the Wizard. Here is one of the averages:

<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Coach,AvgOfQuestionOne,AvgOfQuestionTwo,AvgOfQuestionThree,AvgOfQuestionFour,AvgOfQuestionFive,AvgOfQuestionSix,AvgOfQuestionSeven,AvgOfQuestionEight,CountOfID"
s-column="AvgOfQuestionSeven" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>AvgOfQuestionSeven<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"AvgOfQuestionSeven")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="59161" --></td>
 
K

Karl E. Peterson

RoadKill said:
It is ASP via the Wizard. Here is one of the averages:

<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Coach,AvgOfQuestionOne,AvgOfQuestionTwo,AvgOfQuestionThree,AvgOfQuestionFour,AvgOfQuestionFive,AvgOfQuestionSix,AvgOfQuestionSeven,AvgOfQuestionEight,CountOfID"
s-column="AvgOfQuestionSeven" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>AvgOfQuestionSeven<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"AvgOfQuestionSeven")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="59161" --></td>

Gonna have to shift into manual at some point, unless you're happy with being Wizzed
upon.

<%=FormatNumber(FP_FieldVal(fp_rs,"AvgOfQuestionSeven"), 2)%>
 
R

RoadKill

Cool, that works. I hear ya and am rebuilding it without the Wizard now.

Thanks for the help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top