From http://www.w3schools.com (Copyright Refsnes Data)

VBScript CSng Function


VBScript Reference Complete VBScript Reference

The CSng function converts an expression to type Single.

Syntax

CSng(expression)

Parameter Description
expression Required. Any valid expression

Example 1

Dim a,b
a=23524.4522
b=23525.5533
document.write(CSng(a) & "<br />")
document.write(CSng(b))

Output:

23524.45
23525.55


VBScript Reference Complete VBScript Reference

From http://www.w3schools.com (Copyright Refsnes Data)