# GH_DigitNumber class

Namespace: [Grasshopper.GUI.Base](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.base.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_DigitNumber
```

Maintains and provides functionality for evaluating and modifying numbers as used in the GH_DigitScrollerBase control.

## Constructors

- [GH_DigitNumber](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/ctor.md): (3 overloads) Create an exact duplicate of another GH_DigitNumber instance.

## Properties

- [DigitCount](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/digitcount.md): Gets or sets the amount of digits in this number.
- [Epsilon](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/epsilon.md): Gets the smallest possible change.
- [IsPrimaryDigitSignificant](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/isprimarydigitsignificant.md): Gets whether the primary digit at the given index is significant.
- [IsSecondaryDigitSignificant](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/issecondarydigitsignificant.md): Gets whether the secondary digit at the given index is significant.
- [Maximum](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/maximum.md): Gets the maximum value allowed in this number.
- [Minimum](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/minimum.md): Gets the minimum value allowed in this number.
- [Offset](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/offset.md): Gets the offset between the primary and secondary digits.
- [PrimaryDigits](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/primarydigits.md): Gets the internal list of primary digits. Do not modify this list.
- [PrimaryPositive](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/primarypositive.md): Gets or sets a value indicating whether the number is positive.
- [Radix](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/radix.md): Gets or sets the radix point index. A negative radix index disables the radix point, zero is not a valid index.
- [RadixIndex](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/radixindex.md): Gets the mapped radix.
- [SecondaryDigits](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/secondarydigits.md): Gets the internal list of secondary digits. Do not modify this list.
- [SecondaryPositive](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/secondarypositive.md): Gets a value indicating whether the secondary number is positive.
- [Value](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/value.md): Gets or sets the value of this number.

## Methods

- [AssignOffset](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/assignoffset.md): Assign an offset to a given digit and recursively adjust all leftwards offsets if needed.
- [LimitValue](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/limitvalue.md): Limits the value to the minimum and maximum domain.
- [Reset](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/reset.md): Reset all parts to zero.
- [Round](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/round.md): Round the number by cancelling the offset in the proper direction.
- [ToString](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-digitnumber/tostring.md)
