CLng Function

рдХрд┐рд╕реА рднреА рд╕реНрдЯреНрд░рд┐рдВрдЧ рдпрд╛ рдиреНрдпреВрдореЗрд░рд┐рдХ рдПрдХреНрд╕рдкреНрд░реЗрд╢рди рдХреЛ рд▓рдВрдмреЗ рдкреВрд░реНрдгрд╛рдВрдХ рдореЗрдВ рдмрджрд▓рддрд╛ рд╣реИ.

Syntax:


IsDate (Expression)

рд╡рд╛рдкрд╕реА рдореВрд▓реНрдп:

Long

рдкреИрд░рд╛рдореАрдЯрд░

Expression: Any numerical expression that you want to convert. If the Expression lies outside the valid long integer range between -2.147.483.648 and 2.147.483.647, LibreOffice Basic returns an overflow error. To convert a string expression, the number must be entered as normal text ("123.5") using the default number format of your operating system.

This function always rounds the fractional part of a number to the nearest integer.

Error codes:

5 Invalid procedure call

рдЙрджрд╛рд╣рд░рдг:


Sub ExampleCountryConvert
    MsgBox CDbl(1234.5678)
    MsgBox CInt(1234.5678)
    MsgBox CLng(1234.5678)
End Sub