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

VBScript CCur function


May 13, 2021 VBScript


Table of contents


VBScript CCur function

The VBScript CCur function returns an expression that has been converted to variant of the Currency sub-type.


VBScript CCur function Complete VBScript reference manual

The CCur function converts expressions to currency types.

The expression must be a value.

Grammar

CCur(expression)

Parameters

parameter describe
expression Required.Any effective expression.

Instance 1

<script type="text/vbscript">

document.write(CCur(30) & "<br />")

</script>

The above example output results:

30

Try it out . . .

Instance 2

Note that the CCur function is rounded to 4-bit counts:

<script type="text/vbscript">

document.write(CCur(5.9555555555555) & "<br />")

</script>

The above example output results:

5.9556

Try it out . . .

VBScript CCur function Complete VBScript reference manual