# LogarithmicConverter.Convert Method

> Converts an integer or a double precision floating point value to an integer or a double precision floating point value.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **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 > LogarithmicConverter.Convert Method
- **666 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/logarithmicconverter/convert-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/logarithmicconverter/convert-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/logarithmicconverter/convert-method/llms-full.txt

---

### Description

Converts an integer or a double precision floating point value to an integer or a double precision floating point value.

### Syntax

```csharp
public object Convert(object value, Type targetType, object parameter, CultureInfo culture);
```

```vbnet
Public Function Convert(value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object
```

### Parameters

| Parameter | Description |
|---|---|
| value | The value produced by the binding source. It must be either a double precision floating point value or an integer. |
| targetType | The type of the binding target property. It must be either a double precision floating point value or an integer. |
| parameter | The converter parameter. Is not used by this converter. |
| culture | The culture to use in the converter. |

### Return Value

The converted value. The method returns DependencyProperty.UnsetValue, if the conversion is not possible.

### Examples

The following example uses Convert in a focused Logarithmic Converter workflow.

```csharp
var result = logarithmicConverter.Convert("Approved", typeof(object), "Approved", System.Globalization.CultureInfo.GetCultureInfo("en-US"));
Console.WriteLine($"Convert result: {result}");
```

```vbnet
Dim result = logarithmicConverter.Convert("Approved", GetType(Object), "Approved", System.Globalization.CultureInfo.GetCultureInfo("en-US"))
Console.WriteLine($"Convert result: {result}")
```

---

## Nearby

- **Previous:** [LogarithmicConverter Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/logarithmicconverter/llms-full.txt)
- **Next:** [LogarithmicConverter.ConvertBack Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/logarithmicconverter/convertback-method/llms-full.txt)
