nearest integer function
(Q6583251)
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
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
Language:
Current Data About
nearest integer function
(P18) |
|
(P31) |
(Q44106280)
(Q19856468) (Q663208) |
(P1568) |
(Q1174982)
|
(P2396) |
(Q47007735)
|
(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-\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}
|
(P6104) |
(Q8487137)
|
other details
aliases |
rounding to integer round to integer |
description | 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 |
External Links
(P2671) |
/g/124xvxhnc
|
(P2812) |
NearestIntegerFunction
|