nearest integer function
function which returns the nearest integer to x; for half-integers, a rounding rule must be chosen, usually to round half-integers to the nearest even integer
Facts
5 properties- Instance of
- idempotent function, integer-valued function, rounding
- Defining formula
- x \mapsto \begin{cases} \lfloor x\rfloor & (x-\lfloor x\rfloor < 1/2) \\ \lfloor x \rfloor +1 & (x-\lfloor x\rfloor > 1/2) \\ \lfloor x\rfloor & (x-\lfloor x\rfloor = 1/2,\;\lfloor x\rfloor \equiv 0 \pmod 2) \\\lfloor x\rfloor + 1 & (x-\lfloor x\rfloor = 1/2,\;\lfloor x\rfloor \equiv 1 \pmod 2) \end{cases}
- Definition domain
- set of real numbers
- Different from
- floor and ceiling functions
- Image of function
- set of integers
🏷️ Also known as
en nearest integer function
en rounding to integer
en round to integer
de Rundungsfunktion
he עיגול לשלמים
he פונקציית עיגול למספר שלם
ja 最近接整数関数
nl Nint
pl funkcja zaokrąglenia
ru округление до ближайшего целого
th ฟังก์ชันจำนวนเต็มใกล้สุด
zh 奇進偶捨
🔖 Identifiers · 2
- Google Knowledge Graph ID
- /g/124xvxhnc
- MathWorld ID
- NearestIntegerFunction
Press Enter · cited answer in seconds
0 sources
Summary
nearest integer function is an idempotent function[1].
Key Facts
- Instance of: integer-valued function[2], rounding[3]
- Definition domain: set of real numbers[4]
- Different from: floor and ceiling functions[5]
- Image of function: set of integers[6]
- nearest integer function's defining formula is recorded as x \mapsto \begin{cases} \lfloor x\rfloor & (x-\lfloor x\rfloor < 1/2) \ \lfloor x \rfloor +1 & (x-\lfloor x\rfloor > 1/2) \ \lfloor x\rfloor & (x-\lfloor x\rfloor = 1/2,\;\lfloor x\rfloor \equiv 0 \pmod 2) \\lfloor x\rfloor + 1 & (x-\lfloor x\rfloor = 1/2,\;\lfloor x\rfloor \equiv 1 \pmod 2) \end{cases}<sup id="cite-C8" class="cite-ref" title="nearest integer function — defining formula (P2534): x \mapsto \begin{cases} \lfloor x\rfloor & (x-\lfloor x\rfloor < 1/2) \ \lfloor x \rfloor +1 & (x-\lfloor x\rfloor > 1/2) \ \lfloor x\rfloor & (x">[?].
- Maintained by WikiProject: WikiProject Mathematics[7]