description
Returns the expression that is converted to a LONG subtype of Variant.
grammar
CLNG (Expression)
The Expression parameter is an arbitrary effective expression.
Description
Typically, you can write code using a subtype data conversion function to show that the results of some operations should be expressed as specific data types, not the default data type. For example, in the case of currency operation, single-precision or double precision arithmetic operation, an integer operation is enforced using CINT or CLNG functions.
The CLNG function is used to perform internationally recognized format conversions from other data types to long subtypes. For example, the identification of the decimal separator and the thousands of separators depends on the area setting of the system.
An error occurs if the expression of Expression is not within the allowable range of the LONG subtype.
-------------------------------------------------- ------------------------------
Note that the CLNG function is different from the FIX and int function functions, and the latter two functions are cut in the fractional fraction of the value rather than the round. When the decimal portion is equal to 0.5, the CLNG function is typically accumulated to the closer number of adjacent points. For example, 0.5 is taken with 0, 1.5.