Translation

03100600.xhp par_id3147573 help.text
English 8aFmF
Context English Estonian Actions
03100500.xhp
hd_id3149346
help.text
<link href="text/sbasic/shared/03100500.xhp" name="CInt Function">CInt Function</link> <link href="text/sbasic/shared/03100500.xhp" name="CInt Function">CInt funktsioon</link>
03100500.xhp
par_id3155419
help.text
Converts any string or numeric expression to an integer. Teisendab suvalise stringi või arvavaldise täisarvuks.
03100500.xhp
par_id3154142
help.text
CInt (Expression As Variant) As Integer
03100500.xhp
par_id3159416
help.text
If the argument is string, the function trims the leading white space; then it tries to recognize a number in following characters. The syntax below are recognized:
03100500.xhp
par_id811638383475418
help.text
Decimal numbers (with optional leading sign) using decimal and group separators of locale configured in $[officename] (group separators are accepted in any position), with optional exponential notation like "-12e+1" (where an optionally signed whole decimal number after e or E or d or D defines power of 10);
03100500.xhp
par_id361638383494362
help.text
Octal numbers like "&Onnn...", where "nnn..." after "&O" or "&o" is sequence no longer than 11 digits, from 0 to 7, up to the next non-alphanumeric character;
03100500.xhp
par_id91638383518862
help.text
Hexadecimal numbers like "&Hnnn...", where "nnn..." after "&H" or "&h" is sequence of characters up to the next non-alphanumeric character, and must be no longer than 8 digits, from 0 to 9, A to F, or a to f.
03100500.xhp
par_id61638383582794
help.text
The rest of the string is ignored. If the string is not recognized, e.g. when after trimming leading whitespace it doesn't start with plus, minus, a decimal digit, or "&", or when the sequence after "&O" is longer than 11 characters or contains an alphabetic character, the numeric value of expression is 0.
03100500.xhp
par_id3159417
help.text
If the argument is an error, the error number is used as numeric value of the expression.
03100500.xhp
par_id3159418
help.text
If the argument is a date, number of days since 1899-12-30 (serial date) is used as numeric value of the expression. Time is represented as fraction of a day.
03100500.xhp
par_id3150358
help.text
After calculating the numeric value of the expression, it is rounded to the nearest integer (if needed), and if the result is not between -32768 and 32767, $[officename] Basic reports an overflow error. Otherwise, the result is returned.
03100600.xhp
tit
help.text
CLng Function CLng funktsioon
03100600.xhp
bm_id3153311
help.text
<bookmark_value>CLng function</bookmark_value> <bookmark_value>CLng funktsioon</bookmark_value>
03100600.xhp
hd_id3153311
help.text
<link href="text/sbasic/shared/03100600.xhp" name="CLng Function">CLng Function</link> <link href="text/sbasic/shared/03100600.xhp" name="CLng Function">CLng funktsioon</link>
03100600.xhp
par_id3148686
help.text
Converts any string or numeric expression to a long integer. Teisendab stringi või arvavaldise pikaks täisarvuks.
03100600.xhp
par_id3147573
help.text
CLng (Expression As Variant) As Long
03100600.xhp
par_id3159414
help.text
If <literal>Expression</literal> lies outside the valid long integer range between -2.147.483.648 and 2.147.483.647, $[officename] Basic returns an overflow error.
03100600.xhp
par_id3150358
help.text
This function always rounds the fractional part of a number to the nearest integer. See funktsioon teisendab arvu murruosa lähima täisarvuni.
03100700.xhp
tit
help.text
Const Statement Const lause
03100700.xhp
bm_id3146958
help.text
<bookmark_value>Const statement</bookmark_value> <bookmark_value>Const lause</bookmark_value>
03100700.xhp
hd_id3146958
help.text
<link href="text/sbasic/shared/03100700.xhp" name="Const Statement">Const Statement</link> <link href="text/sbasic/shared/03100700.xhp" name="Const Statement">Const lause</link>
03100700.xhp
par_id3154143
help.text
Defines one or more identifiers as constants.
03100700.xhp
par_id3147264
help.text
A constant is a variable that helps to improve the readability of a program. Constants are not defined as a specific type of variable, but rather are used as placeholders in the code. You can only define a constant once and it cannot be modified.
03100700.xhp
par_id831588865616326
help.text
<image src="media/helpimg/sbasic/Const_statement.svg" id="img_id651588865616326"><alt id="alt_id281588865616326">Const syntax</alt></image>
03100700.xhp
par_id3150984
help.text
[Global|Private|Public] Const name = expression[, ...]
03100700.xhp
par_id3153897
help.text
<emph>name:</emph> Any identifier that follows the standard variable naming conventions.
03100700.xhp
par_id791593689338208
help.text
<emph>expression:</emph> Any literal expression.
03100700.xhp
par_id3150400
help.text
The data type must be omitted. When a library gets loaded in memory, %PRODUCTNAME Basic converts the program code internally so that each time a constant is used, the defined expression replaces it.
03100700.xhp
hd_id51593690561479
help.text
Scope
03100700.xhp
par_id431593690612961
help.text
By default constants are defined as private in modules and routines. Constants can be made public or global in order to be used from all modules, from all Basic libraries.
03100700.xhp
par_id241593693307830
help.text
<literal>Global</literal>, <literal>Private</literal> and <literal>Public</literal> specifiers can only be used for module constants.

Loading…

User avatar None

String updated in the repository

LibreOffice Help - master / text/sbasic/sharedEstonian

 
4 months ago
Browse all component changes

Glossary

English Estonian
No related strings found in the glossary.

String information

Context
03100600.xhp
par_id3147573
help.text
Source string description
8aFmF
Source string location
03100600.xhp
String age
4 months ago
Source string age
4 months ago
Translation file
et/helpcontent2/source/text/sbasic/shared.po, string 2789