英語

integer

gb/ˈɪntəd͡ʒɚ/ us/ˈɪntəd͡ʒɚ/
B2 英語
~ 5300
語義
0件の語義
名詞 technical B2 quantity
1

whole number in mathematics

A whole number without any decimal or fraction, like −2, 0, 5, or 100.

用法パターン: an integer between [number] and [number]
よくある間違い:
Learners sometimes think that decimals like 3.5 or fractions like 1/2 are integers. Integers are only whole numbers (…−2, −1, 0, 1, 2…). Learners may also confuse “integer” with the more general word “number”, which includes fractions and decimals.
類義語
whole number (More common in everyday English and school math; less formal and technical than “integer”.)
対義語
fraction (A fraction represents part of a whole, while an integer is a complete whole number.)
コロケーション
positive integer |negative integer |even integer |odd integer |random integer |integer value
テーマ
mathematics |education |science
例文
  • Zero is an integer, even though it is neither positive nor negative.
  • The function only accepts an integer as its input parameter.
  • Write an example of an integer that is greater than 10 but less than 20.
  • The teacher asked us to list all the integers between −5 and 5.
  • In this exercise, you must round the result to the nearest integer.
学習者向け例文
  • Five is an integer.
  • Minus three is an integer.
  • This program needs an integer, not a decimal number.
  • Please choose an integer from one to ten.
  • Zero is also an integer.
名詞 technical C1 entity
2

whole-number data type in computing

In computer programs, a kind of value that can store whole numbers only, not decimals.

用法パターン: an integer variable that stores [number]
よくある間違い:
Learners sometimes confuse the mathematical meaning of “integer” with the programming data type and may not realize that different programming languages limit the size of an integer, which can cause errors like integer overflow.
類義語
int (Common abbreviation and type name in many programming languages; informal shorthand for “integer”.)
対義語
string (In programming, a string stores text, which contrasts with an integer that stores numeric whole values.)
コロケーション
integer variable |integer type |32-bit integer |integer field |integer overflow |integer value
テーマ
technology |programming |computer science
例文
  • Use an integer variable to count the number of users who log in.
  • In this database, the user ID is stored as an integer.
  • Because of integer overflow, the result wrapped around to a negative value.
  • You should convert the input text to an integer before doing any calculations.
  • The function returns an integer representing the status code.
学習者向け例文
  • This code uses an integer to store the age.
  • Please change this field from text to integer.
  • The program crashes when the integer is too large.
  • We save the score as an integer in the game.
  • The function takes two integers and adds them.
文法
辞書形
integer
IPA
GB/ˈɪntəd͡ʒɚ/
US/ˈɪntəd͡ʒɚ/
音節・強勢
in - teger (2音節)
Stress on 1st syllable (in)
活用形
Noun
  • Base: integer
  • Plural: integers
関連語
Forms
integers noun
Core family
integral adjective B2 integrate verb B2 integration noun B2
Related words
integrity noun B2
Negative and opposite forms
non-integer adjective
Advanced or less common
integrable adjective
表現

integer division

1
/ˈɪntəd͡ʒɚ dɪvˈɪʒən/
fixed phrase technical

division that discards the remainder

A kind of division in math or programming where you keep only the whole-number answer and throw away the remainder or decimal part.

例文
  • In this language, the operator performs integer division, not normal division.
  • Integer division of 7 by 3 gives 2, with a remainder of 1.

integer overflow

1
/ˈɪntəd͡ʒɚ ˈoʊvɚfloʊ/
fixed phrase technical

integer value goes beyond its range

A problem in a computer program when an integer becomes too big or too small to store, causing a wrong value or error.

例文
  • The bug was caused by integer overflow when the counter passed two billion.
  • To avoid integer overflow, we switched to a 64-bit integer type.

integer part

1
/ˈɪntəd͡ʒɚ pˈɑɹt/
fixed phrase technical

whole-number portion of a value

The whole-number part of a number, without the decimal or fraction.

例文
  • The integer part of 5.9 is 5.
  • Separate the integer part from the decimal part before rounding.

integer programming

1
/ˈɪntəd͡ʒɚ pɹˈoʊɡɹˌæmɪŋ/
fixed phrase technical

optimization with integer-only variables

A type of math problem in operations research where some or all choices must be whole numbers, not fractions.

例文
  • They used integer programming to optimize the delivery routes.
  • Integer programming problems are often harder to solve than linear ones.

signed integer

1
/sˈaɪnd ˈɪntəd͡ʒɚ/
fixed phrase technical

integer that can be negative or positive

An integer type in a computer that can store both negative and positive whole numbers.

例文
  • Use a signed integer for temperatures, since they can be below zero.
  • By default, this language treats the type as a signed integer.

unsigned integer

1
/ʌnsˈaɪnd ˈɪntəd͡ʒɚ/
fixed phrase technical

integer that cannot be negative

An integer number or type that allows only zero and positive values, not negative ones.

例文
  • An unsigned integer is enough for counting the number of items.
  • Array indices are usually stored as an unsigned integer.
  • We changed the field to an unsigned integer to double the maximum value.
  • The variable is defined as an unsigned integer to avoid negative results.
  • This field expects an unsigned integer in the configuration file.

おかえりなさい!

続行するにはログインしてください。

アカウントをお持ちでない方 新規登録