VBScript CCur Function
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 »
Complete VBScript Reference Manual