Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript CSng function


May 13, 2021 VBScript


Table of contents


VBScript CSng function

The VBScript CSng function returns an expression that has been converted to Variant of the Single sub-type.


VBScript CSng function Complete VBScript reference manual

The CSng function converts expressions to single-precision types.

The expression must be a value.

Grammar

CSng(expression)

Parameters

parameter describe
expression Required.Any effective expression.
<script type="text/vbscript">

document.write(CSng("300000") & "<br />")
document.write(CSng(1536.75263541) & "<br />")
document.write(CSng(-6700000) & "<br />")

</script>

The above example output results:

300000
1536.753
-6700000

Try it out . . .

VBScript CSng function Complete VBScript reference manual