---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/MathExtensions
---

# MathExtensions

## Overview

`MathExtensions` is a class in Aspose.PDF FOSS for .NET.

Small integer math helpers shared by the security primitives.

This class provides 1 method for working with MathExtensions objects in .NET programs.
Available methods include: `Mod`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.

## Methods

| Signature | Description |
|-----------|-------------|
| `Mod(value: int, modulus: int)` | Floored modulo: returns a result with the sign of modulus, so (-11).Mod(5) == 4 rather than C#'s remainder -1. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)