freeCodeCamp/guide/chinese/mathematics/whole-numbers-and-integers/index.md

25 lines
915 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Whole Numbers and Integers
localeTitle: 整数和整数
---
## 整数和整数
### 整数
所有正数包括零没有小数或小数部分。从1,2,3等开始的数字......称为计数数字或自然数字。
_示例_ 0,8,512,36535
由于其微不足道的性质,整数通常被视为理所当然。但是,我们对数学的全部理解依赖于对整数和计数的概念的理解。
使用整数,我们可以计算,加,减,乘,从而能够执行所有其他数学函数。您可以使用整数表示整数,理性,非理性和实数。
### 整型
整数具有上面提到的整数的所有属性。另外,整数可以是负数。
所有整数都是整数。
_示例_ -23-11,0,12,7129
如果整数是负数,它在它之前有一个`-`符号。 您可以通过[舍入](https://www.mathsisfun.com/rounding-numbers.html)过程将任何实数转换为整数。