From http://www.w3schools.com (Copyright Refsnes Data)
Complete VBScript Reference
The CSng function converts an expression to type Single.
| CSng(expression) |
| Parameter | Description |
|---|---|
| expression | Required. Any valid expression |
|
Dim a,b a=23524.4522 b=23525.5533 document.write(CSng(a) & "<br />") document.write(CSng(b)) Output: 23524.45 23525.55 |
Complete VBScript Reference
From http://www.w3schools.com (Copyright Refsnes Data)