TR Bölme işlecinin tamsayı bölüm vermesi için iki teriminin de tamsayı (veya dönüşüm sonucu tamsayı olan dizge) olması ve birbirlerine tam olarak bölünmesi gerekir, aksi takdirde bölüm gerçek sayı olacaktır. Tamsayı bölme için
TR Bölme işlecinin tamsayı bölüm vermesi için iki teriminin de tamsayı (veya dönüşüm sonucu tamsayı olan dizge) olması ve birbirlerine tam olarak bölünmesi gerekir, aksi takdirde bölüm gerçek sayı olacaktır. Tamsayı bölme için
EN The division operator ("/") returns a float value unless the two operands are integers (or strings that get converted to integers) and the numbers are evenly divisible, in which case an integer value will be returned. For integer division, see
turečtina | Angličtina |
---|---|
veya | or |
TR '5', açık bir şekilde, 5 değerine sahiptir, ya da başka bir deyişle '5', değeri 5 olan bir ifadedir (bu durumda, '5' bir tamsayı sabittir).
EN '5', obviously, has the value 5, or in other words '5' is an expression with the value of 5 (in this case, '5' is an integer constant).
turečtina | Angličtina |
---|---|
başka | other |
bu | this |
durumda | case |
TR Burada iki değer kullanımı sözkonusudur, bir tamsayı sabit olan '5' ve 5 olarak değiştirilmiş $a'nın değeri
EN It's easy to see that there are two values involved here, the value of the integer constant '5', and the value of $a which is being updated to 5 as well
TR Örnek 4 - Tamsayı aralıklarında dallanmak için genelleştirilmiş eşleşme ifadelerinin kullanılması
EN Example #4 Using a generalized match expressions to branch on integer ranges
TR is_int() - Değişken bir tamsayı mı diye bakar
EN is_int() - Find whether the type of a variable is integer
turečtina | Angličtina |
---|---|
değişken | variable |
TR Konumu samanlık dizgesinin başına göre (başlangıçtan bağımsız) bir tamsayı olarak döndürür.Dizgenin ilk karakterinin konumu 1 değil 0'dır. Eğer iğne bulunamazsa false döner.
EN Returns the position of where the needle exists relative to the beginning of the haystack string (independent of offset). Also note that string positions start at 0, and not 1.
turečtina | Angličtina |
---|---|
konumu | position |
bağımsız | independent |
ilk | start |
değil | not |
TR Tüm diğer durumlarda, her iki terim tamsayıya dönüştürülür ve sonuç tamsayı olur.
EN In all other cases, both operands will be converted to integers and the result will be an integer.
turečtina | Angličtina |
---|---|
diğer | other |
durumlarda | cases |
ve | and |
sonuç | result |
TR ~ işleci için terim bir dize ise, terimdeki karakterlerin ASCII değerleri üzerinde işlem yapılır ve sonuç bir dize olur. Aksi takdirde, terim ve sonuç tamsayı olarak ele alınır.
EN If the operand for the ~ operator is a string, the operation will be performed on the ASCII values of the characters that make up the string and the result will be a string, otherwise the operand and the result will be treated as integers.
turečtina | Angličtina |
---|---|
sonuç | result |
TR << ve >> işleçleri için her iki terim ve sonuç daima tamsayı olarak ele alınır.
EN Both operands and the result for the << and >> operators are always treated as integers.
turečtina | Angličtina |
---|---|
sonuç | result |
daima | always |
Zobrazuje se 9 z 9 překladů