LC·Dict

int

B2abbreviation
US/ɪnt/UK가끔 쓰임

프로그래밍에서 ‘정수’ 또는 ‘정수형’을 뜻하는 integer의 축약형

noun명사

  1. 1

    정수형, 정수 자료형프로그래밍에서 소수점이 없는 정수를 저장하거나 표현하는 자료형B2computing

    in programming, a data type used to store or represent whole numbers without decimal parts

    • Use an int when the value cannot have a decimal part.

      값에 소수 부분이 있을 수 없을 때 int를 사용하세요.

    • The array stores each score as an int.

      그 배열은 각 점수를 int로 저장합니다.

  2. 2

    정수값, 정수 변수int 자료형으로 저장된 값이나 변수B2computing

    a value or variable stored as the int data type

    • This method returns an int.

      이 메서드는 int를 반환합니다.

    • Convert the string to an int before adding it.

      더하기 전에 그 문자열을 int로 변환하세요.

    유의어integer

    반의어float

뉘앙스 · 쓰임

integer는 수학적 ‘정수’나 프로그래밍의 정수 자료형을 설명할 때 쓰는 더 완전한 말이고, int는 코드에서 쓰는 짧은 형태입니다. number는 더 넓은 말로 정수, 소수, 실수 등을 모두 포함할 수 있습니다.

코드에서는 보통 int처럼 소문자로 쓰지만, 언어나 문맥에 따라 Int처럼 대문자로 시작하는 타입 이름도 있습니다. 일반 독자를 위한 글에서는 처음에 integer라고 풀어 쓰거나 설명을 덧붙이는 것이 좋습니다.

유의어 뉘앙스 비교

integer type
int보다 풀어 쓴 표현으로, 설명문에서 더 이해하기 쉽습니다.
integer data type
더 명확하고 공식적인 표현입니다.
integer
자료형 이름이 아니라 실제 정수 값 자체를 가리킬 때 더 일반적으로 쓰입니다.

반의어

float
정수가 아닌 소수 값을 담을 수 있는 값이나 자료형을 가리킵니다.
string
숫자가 아니라 문자 데이터를 저장하는 자료형입니다.

자주 쓰는 표현 · Collocations

noun+noun

  • an int variableint 변수
  • int valueint 값

verb+noun

  • return an intint를 반환하다
  • declare an intint를 선언하다

verb+prep+noun

  • convert to intint로 변환하다

어원 · 암기 팁

[English]영어 integer를 프로그래밍 문맥에서 짧게 줄인 형태입니다. integer 자체는 ‘온전한, 손상되지 않은’이라는 뜻의 라틴어 integer에서 왔습니다.

integer의 앞부분 int를 따온 축약형

💡 integer에서 앞의 세 글자 int만 남긴 코드용 짧은 이름으로 기억하면 됩니다.