Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript CSng Function

VBScript CSng Function


VBScript reference manual Complete VBScript Reference Manual


The CSng function converts an expression to the Single type.

The expression must be a number.

Syntax

CSng(expression)

Parameters Description
expression Required. Any valid expression.

Example

Example

The example above produces the following output:

300000

1536.753

-6700000

Try it »


VBScript reference manual Complete VBScript Reference Manual