---
name: "im_rint"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_rint"
---

# im\_rint(3)

for each pixel, find the nearest integral value

## NAME

im\_rint - for each pixel, find the nearest integral value

## SYNOPSIS

\#include \<vips/vips.h\>

int im\_rint( in, out )\
 IMAGE \*in, \*out;

## DESCRIPTION

**[im\_rint(3)](/im_rint/3.md)** finds the nearest integral value. Copy for integer types,  call [rint(3)](/rint/3.md) for float and complex types. Output type == input type.

## RETURN VALUE

The function returns 0 on success and -1 on error.

## SEE ALSO

[im\_abs(3)](/im_abs/3.md), [im\_clip2fmt(3)](/im_clip2fmt/3.md), [im\_floor(3)](/im_floor/3.md)
