-
Jun 14th, 2001, 09:52 PM
#1
Thread Starter
Junior Member
VBscript decimal
I creat a VBscript function and
I have a var myno=0.0
I want the value of it contain only one decimal but when the number display in the screen it giv me like that 3.43445454 how can I make it 3.4
-
Jun 15th, 2001, 01:50 PM
#2
Fanatic Member
VBScript questions in Java?
Here's an answer:
Use:
FormatNumber(3.43445454, 1)
If all you want is the first decimal digit alone.
Use:
Round(3.43445454, 1)
If you want to round the number to the first decimal digit.
Chris
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
|