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
Printable View
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
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