CLNGLNG(expression)

Returns the expression converted to a longlong (64 bit platform) data type.


expressionThe expression to evaluate and convert to a longlong.

REMARKS
* Takes a variant.
* Valid on 64 bit platforms
* Fractions are rounded.
* You can use the CLNG to return an expression converted to a long data type.
* You can use the CLNGPTR to return a LongPtr data type.

CLngLng(0.5) = 0 
CLngLng(0.6) = 1
CLngLng(1.5) = 2
CLngLng(2.5) = 2
CLngLng(2.6) = 3
CLngLng(2.9) = 3
CLngLng(3.5) = 4

Dim iCount As Integer
iCount = 30.75
CLngLng(iCount) = 30

CLngLng("1234567") = 1234567

© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited Top