---
name: "im_remainderconst_vec"
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_remainder"
---

# im\_remainderconst\_vec(3)

remainder after integer division

Part of [im\_remainder(3)](/im_remainder/3.md).

## NAME

im\_remainder, im\_remainderconst, im\_remainderconst\_vec - remainder after integer division

## SYNOPSIS

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

int im\_remainder( IMAGE \*in1, IMAGE \*in2, IMAGE \*out )\

int im\_remainderconst( IMAGE \*in, IMAGE \*out, double c )\

int im\_remainderconst\_vec( IMAGE \*in, IMAGE \*out, int n, double \*c )

## DESCRIPTION

**[im\_remainder(3)](/im_remainder/3.md)** calculates the remainder after integer division of two images. The output type is the same as the type of **in1** unless **in1** is float or complex, in which case the output type is signed integer.

**[im\_remainderconst(3)](/im_remainderconst/3.md)** calculates the remainder after integer division of **in** by the constant **c.** The output type is the same as the type of **in** unless **in** is float or complex, in which case the output type is signed integer.

**[im\_remainderconst\_vec(3)](/im_remainderconst_vec/3.md)** works as **[im\_remainderconst(3)](/im_remainderconst/3.md),** but lets you specify a constant per band.

## RETURN VALUE

All functions return 0 on success and -1 on error.

## SEE ALSO

[im\_add(3)](/im_add/3.md), [im\_lintra(3)](/im_lintra/3.md), [im\_divide(3)](/im_divide/3.md)

## COPYRIGHT

National Gallery, 2002
