CCur Function

Tips >>ASP Functions

WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE

The CCur function converts an expression to type Currency. Its parameter is expression which describes a valid expression. In general, you can document your code using the subtype conversion functions to show that the result of some operation should be expressed as a particular data type rather than the default data type. For example, use CCur to force currency arithmetic in cases where integer arithmetic normally would occur. You should use the CCur function to provide internationally aware conversions from any other data type to a Currency subtype. For example, different decimal separators and thousands separators are properly recognized depending on the locale setting of your system.


The Syntax of CCur function is :-

CCur(expression)

Example#1 :-

Code :-
dim a
a=134.345
document.write(CCur(a))
Output :-

134.345

Example#2 :-

Code :-
dim a
a=1411111111.345455
'NB! This function rounds off to 4 decimal places
document.write(CCur(a))
Output :-

1411111111.3455

 

 
E-mail : sales@virtualsplat.com
Phone : +91-9892413501

Whatsapp Icon +91-9967648641

Whatsapp Icon +91-9967648641