整数

zhěngshù

whole number

HSK 7

漢字分解

Understanding 整数 (zhěngshù)

The word 整数 specifically refers to integers—numbers without fractional or decimal parts. It is commonly used in mathematics, programming, and everyday contexts where whole numbers are required.

Usage and Nuances

When using 整数, speakers emphasize the completeness and indivisibility of the number. It contrasts with decimals or fractions (, 分数). For example, in math problems or computer science, specifying 整数 clarifies that only whole numbers are acceptable.

Common Collocations

  • 整数 (integer solution): used in equations or problems where the answer must be an integer.
  • 整数部分 (integer part): refers to the whole number part of a decimal.
  • 整数 (round to an integer): a common phrase in rounding numbers.

Tips

Avoid confusing 整数 with 数字 (number), which can be any number including decimals. 整数 always excludes fractions and decimals. In casual speech, when precision is not needed, people might just say 数字, but in technical or academic contexts, 整数 is precise and necessary.

例文

这个方程的解必须是整数。

Zhège fāngchéng de jiě bìxū shì zhěngshù.

The solution to this equation must be an integer.

请把数字四舍五入到最接近的整数。

Qǐng bǎ shùzì sìshěwǔrù dào zuì jiējìn de zhěngshù.

Please round the number to the nearest integer.

在编程中,整数和浮点数是不同的数据类型。

Zài biānchéng zhōng, zhěngshù hé fúdiǎnshù shì bùtóng de shùjù lèixíng.

In programming, integers and floating-point numbers are different data