# MeasureConverter.Decimals Property

> Gets or sets the number of decimals for the converted value.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > MeasureConverter.Decimals Property
- **304 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/measureconverter/decimals-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/measureconverter/decimals-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/measureconverter/decimals-property/llms-full.txt

---

### Description

Gets or sets the number of decimals for the converted value.

### Syntax

```csharp
public int Decimals { get; set; }
```

```vbnet
Public Property Decimals As Integer
```

### Examples

The following example uses `MeasureConverter.Decimals` to configure decimals as part of the measure converter workflow. The configured value is checked before the workflow continues.

```csharp
measureConverter.Decimals = 10;
Console.WriteLine($"Decimals used by Measure Converter: {measureConverter.Decimals}");
```

```vbnet
measureConverter.Decimals = 10
Console.WriteLine($"Decimals used by Measure Converter: {measureConverter.Decimals}")
```

---

## Nearby

- **Previous:** [MeasureConverter.ConvertBack Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/measureconverter/convertback-method/llms-full.txt)
- **Next:** [MeasureConverter.ShowAllDecimals Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/measureconverter/showalldecimals-property/llms-full.txt)
