Show / Hide Table of Contents

Operator operator %

operator %(DiscreteFieldFunction, int)

Composes a function that applies a remainder operation, point-wise, to this function's field result.

Declaration
public static DiscreteFieldFunction operator %(DiscreteFieldFunction f, int v)
Parameters
Type Name Description
DiscreteFieldFunction f
int v
Returns
Type Description
DiscreteFieldFunction

A function that applies a remainder operation to this function's field result.

Remarks

The function result has no data where this function's field result has no data.

The function result has no data when the divisor is zero.

The sign of this function's field result is preserved. For example, 7 remainder 3 (or -3) will result in 1 and -7 remainder 3 (or -3) will result in -1.

The function result extent equals that of this function's field result.

Applies to

Platforms and versions
TargetVersions
.NET300.1
.NET Windows300.1
.NET Android300.1
.NET iOS300.1

operator %(DiscreteFieldFunction, DiscreteFieldFunction)

Composes a function that applies a remainder operation, point-wise, to this function's field result using values from another field as the divisors across their spatial intersection.

Declaration
public static DiscreteFieldFunction operator %(DiscreteFieldFunction a, DiscreteFieldFunction b)
Parameters
Type Name Description
DiscreteFieldFunction a
DiscreteFieldFunction b
Returns
Type Description
DiscreteFieldFunction

A function that applies a remainder operation, point-wise, to this function's field result using values from another field as the divisors across their spatial intersection.

Remarks

The function result has no data where either of the fields have no data.

The function result has no data where the divisor drawn from the other field is zero.

The sign of this function's field result is preserved. For example, 7 remainder 3 (or -3) will result in 1 and -7 remainder 3 (or -3) will result in -1.

The function result extent is the intersection of the extents of the given fields.

The spatial reference of both fields must be equivalent.

Applies to

Platforms and versions
TargetVersions
.NET300.1
.NET Windows300.1
.NET Android300.1
.NET iOS300.1
In this article
Provide feedback
Back to top Copyright © 2025 Esri.