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

VBScript CCur Function

VBScript CCur Function


VBScript reference manual Complete VBScript Reference Manual


The CCur function converts an expression to the Currency type.

The expression must be a number.

Syntax

CCur(expression)

Parameters Description
expression Required. Any valid expression.

Example

Example 1

The example above produces the following output:

30

Try it »

Example 2

Note that the CCur function rounds to 4 decimal places:

The example above produces the following output:

5.9556

Try it »


VBScript reference manual Complete VBScript Reference Manual