# NumberFormat class

Namespace: [Grasshopper2.Types.Numeric](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.numeric.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class NumberFormat : IStorable
```

Immutable collection of number formatting properties.

## Constructors

- [NumberFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/ctor.md): Create a new NumberFormat state.

## Properties

- [DecimalFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/decimalformat.md): Gets the formatting string for regular (decimal) notation.
- [Honest](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/honest.md): (static) Same as [NumberFormat.Minimal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/minimal.md), but whenever the displayed digits do not capture the exact value, an ellipsis is appended.
- [Intent](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/intent.md): (static) Gets the standard humanistic number formatting for Grasshopper. The numeric format attempts to reverse engineer all intent.
- [MantissaMaximumDecimals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/mantissamaximumdecimals.md): Maximum number of decimals to display for the mantissa during scientific formatting.
- [MantissaMinimumDecimals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/mantissaminimumdecimals.md): Minimum number of decimals to display for the mantissa during scientific formatting.
- [MaximumDecimals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/maximumdecimals.md): Maximum number of decimals to display.
- [Minimal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/minimal.md): (static) Gets the number formatting rules which most closely track common formatting in software. Floating point numbers always have at least one decimal digit, but no more than 6 and the final digit is rounded.
- [MinimumDecimals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/minimumdecimals.md): Minimum number of decimals to display.
- [RoundLastDecimal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/roundlastdecimal.md): Round away excess decimals silently. If false, excess decimals are still rounded, but an ellipsis character will be appended to mark the loss.
- [ScientificFormat](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/scientificformat.md): Gets the formatting string for scientific notation.
- [ScientificNotationLowerThreshold](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/scientificnotationlowerthreshold.md): Gets the power of ten below which numbers are formatted using scientific notation.
- [ScientificNotationSuperscript](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/scientificnotationsuperscript.md): Gets whether to format scientific notation using 'e' or using superscripts. If this property yields false, the formatting should look like 1.534e-17, if this property yields true, the formatting should look like 1.534×10⁻¹⁷.
- [ScientificNotationUpperThreshold](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/scientificnotationupperthreshold.md): Gets the power of ten above which numbers are formatted using scientific notation.
- [SpecialCaseIntegers](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/specialcaseintegers.md): Numbers close to integers will be displayed as such.
- [SpecialCaseIntegralConstants](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/specialcaseintegralconstants.md): Numbers that are close to multiples of PI will be displayed as such.
- [SpecialCaseIntegralRoots](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/specialcaseintegralroots.md): Numbers that are close to integer roots will be displayed as such.
- [SpecialCaseRationalConstants](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/specialcaserationalconstants.md): Numbers that are close to fractional values of PI will be displayed as such.
- [SpecialCaseRationals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/specialcaserationals.md): Numbers that are close to fractions will be displayed as such.

## Methods

- [Format](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/format.md): (6 overloads) Format an integer value.
- [Modify](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/modify.md): Modify this formatting.
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/store.md): Serializer.
- [WithoutRounding](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/withoutrounding.md): Disable the [NumberFormat.RoundLastDecimal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/roundlastdecimal.md) property.
- [WithRounding](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/withrounding.md): Enable the [NumberFormat.RoundLastDecimal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.numeric.numberformat/roundlastdecimal.md) property.
