English dictionary, thesaurus, translations & etymology
FreeDict.com

Examples of “integer” in a Sentence

6 example sentences showing how to use integer, grouped by meaning.

noun A whole number, either positive, negative, or zero, with no fractional or decimal part.

  • The set of integers includes -3, 0, and 47, but not 2.5.
  • Round the result to the nearest integer before you store it.
  • Seven is an integer, but seven and a half is not.

noun In programming, a data type that stores whole numbers within a fixed range of values.

  • The function expects an integer, so passing a string will throw an error.
  • Storing the price as an integer number of pence avoids rounding problems.
  • Declare the counter as an integer, because it will only ever hold whole numbers.