VBScript CCur Function
Definition and Usage
Ang CCur function ay maaaring pagbaguhing ang expression na maging type ng pera (Currency).
Syntax
CCur(expression)
Parameter | Description |
---|---|
expression | Mandatory. Any valid expression. |
Instance
Example 1
dim a a=134.345 document.write(CCur(a))
Output:
134.345
Example 2
dim a a=1411111111.345455 document.write(CCur(a)) 'Puwede nang pagsamantalaan ng resulta ng function na ito ng 4 na decimal places.
Output:
1411111111.3455