# IntegerExtensionMethods.Interpolate examples

Examples for [Interpolate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.integerextensionmethods/interpolate.md) in Grasshopper2.Extensions.IntegerExtensionMethods.

## C#

```cs
using Grasshopper2.Extensions;

// As an extension method
BigInteger result = from.Interpolate(to, factor);

// As a static method
result = IntegerExtensionMethods.Interpolate(from, to, factor);
```

## Python

```python
import clr
clr.AddReference('Grasshopper2')
import Grasshopper2.Extensions
clr.ImportExtensions(Grasshopper2.Extensions)

# As an extension method
result = from_.Interpolate(to, factor)

# As a static method
result = Grasshopper2.Extensions.IntegerExtensionMethods.Interpolate(from_, to, factor)
```
