CLng Function /text/sbasic/shared/03100600.xhp
CLng function

CLng Function

Converts any string or numeric expression to a long integer.
CLng (Expression As Variant) As Long Long If Expression lies outside the valid long integer range between -2.147.483.648 and 2.147.483.647, $[officename] Basic returns an overflow error. This function always rounds the fractional part of a number to the nearest integer.