# IntegerExtensionMethods.ToShortString examples

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

## C#

```cs
using Grasshopper2.Extensions;

// As an extension method
string result = value.ToShortString(fullDigits, headDigits);

// As a static method
result = IntegerExtensionMethods.ToShortString(value, fullDigits, headDigits);
```

## Python

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

# As an extension method
result = value.ToShortString(full_digits, head_digits)

# As a static method
result = Grasshopper2.Extensions.IntegerExtensionMethods.ToShortString(value, full_digits, head_digits)
```
