|
-
Feb 9th, 2001, 10:52 PM
#1
Thread Starter
Fanatic Member
Hi,
I want to show numeric values in a table cell, and I need to round it off to 2 decimal places.
I cannot use
Code:
= Format$(TheNumber,"00.00")
because vbscript doesn't support it.
Any ideas anyone?
DocZaf
{;->
-
Feb 9th, 2001, 11:08 PM
#2
VBScript supports the Round function.
Code:
?Round(TheNumber, 2)
-
Feb 9th, 2001, 11:33 PM
#3
Thread Starter
Fanatic Member
Thanks Matthew and how about padding with zero's?
Zaf
{;->
-
Feb 10th, 2001, 12:27 AM
#4
-
Feb 10th, 2001, 08:26 AM
#5
New Member
lo there,
maybe I can help, you cant use the format function but you can use FormatNumber
ie for what you want try:
FormatNumber(TheNumber, 2)
then you shouldn't need to worry about the padding with 0's.
hope that helps
-
Feb 10th, 2001, 09:06 AM
#6
Thread Starter
Fanatic Member
Thanks Jeh, that should do it,
thanks everyone.
DocZaf
{;->
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
|
Click Here to Expand Forum to Full Width
|