CCur

Function that converts an expression into a currency value.

Syntax
      CCur (expression)

CCur cannot handle Null values.

Example

Dim curSalary
curSalary = CCur(45.764321)

“Gold is the money of kings; silver is the money of gentlemen; barter is the money of peasants; but debt is the money of slaves” ~ Norm Franz

Related:

Q51414 - Internal Format of CURRENCY Data Type.
CBool - Convert to boolean.
CByte
- Convert to byte.
CDate - Convert to Date.
CDbl
- Convert to Double (number).
CInt - Convert to Integer (number).
CLng
- Convert to Long (number).
Convert to Base 36
Syntax - IsBlank function to detect Empty or NULL or Zero.


 
Copyright © 1999-2021 SS64.com
Some rights reserved