Integer Integer An integer (from the Latin "integer" meaning "whole") is a number that can be written without a fractional component. For example, 21, 4, 0, and −2048 are integers, while 9.75, , and are not. The set of integers consists of zero (), the positive natural numbers (, , , …), also called "whole numbers" or "counting numbers", and their additive inverses (the negative integers, i.e., −1, −2, −3, …). The set of integers is often denoted by a boldface Z ("") or blackboard bold formula_1 (Unicode U+2124 ℤ) standing for the German word "Zahlen" (, "numbers"). The integers form
Nearest integer function Nearest integer function In computer science, the nearest integer function of real number "x" denoted variously by formula_1, formula_2, formula_3, nint("x"), or Round("x"), is a function which returns the nearest integer to "x". To avoid ambiguity when operating on half-integers, a rounding rule must be chosen. On most computer implementations, the selected rule is to round half-integers to the nearest even integer—for example, This is in accordance with the IEEE 754 standards and helps reduce bias in the result. There are many other possible rules for tie breaking when rounding a half integer include rounding up, rounding down, rounding to