Natural Number

A natural number is an integer greater than 0. Natural numbers begin at 1 and increment to infinity: 1, 2, 3, 4, 5, etc.

Natural numbers are also called "counting numbers" because they are used for counting. For example, if you are timing something in seconds, you would use natural numbers (usually starting with 1). When written, natural numbers do not have a decimal point (since they are integers), but large natural numbers may include commas, e.g. 1,000 and 234,567,890. Natural numbers will never include a minus symbol (-) because they cannot be negative.

In computer science, natural numbers are commonly used when incrementing values. For example, in a for loop, the counter often increases by one with each iteration. Once the counter hits the limit (e.g., 10 in for (i=1; i<10; i++)), the loop is broken and the code after the loop is processed.

Updated June 12, 2018 by Per C.

quizTest Your Knowledge

What is the minimum resolution required to be considered HDTV?

A
720x480 (480p)
0%
B
720x576 (576p)
0%
C
1280x720 (720p)
0%
D
1920x1080 (1080p)
0%
Correct! Incorrect!     View the HDTV definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Natural Number on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.