VBScript » Functions » CSng

Version: 1.0

Syntax:
CSng(Number)

The CSng function converts any number to the variant of subtype Single.

Converts to values ranging from -3.402823E38 to -1.401298E-45 for negative values and 1.401298E-45 to 3.402823E38 for positive values.

Examples

Code:
<% anynumber=5678.123 %>
<% =CSng(anynumber) %>
Output:
5678.123
Language(s): VBScript

See Also: