> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class Convert

Namespace: [VM.Managed.Utility](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r2/lib/VM.Managed.Utility)\
Assembly: VM.dll

This class is to represent the special convert.

```python theme={null}
public static class Convert
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Convert](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r2/lib/VM.Managed.Utility.Convert.md)

## Properties

### DToR

Gets the Degree to Radius.

```python theme={null}
public static double DToR { get; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### RToD

Gets the Radius to Degree.

```python theme={null}
public static double RToD { get; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### SignificantFigure

Gets the significant figure.

```python theme={null}
public static int SignificantFigure { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

## Methods

### GetContrastColor(Color)

```python theme={null}
public static Color GetContrastColor(Color baseColor)
```

#### Parameters

`baseColor` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)

#### Returns

[Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)

### ToString(double)

Returns a String that represents this instance.

```python theme={null}
public static string ToString(double dVal)
```

#### Parameters

`dVal` [double](https://learn.microsoft.com/dotnet/api/system.double)

The val.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A String that represents this instance.

### ToString(Vector)

Returns a String that represents this instance.

```python theme={null}
public static string ToString(Vector vec)
```

#### Parameters

`vec` [Vector](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r2/lib/VM.Vector.md)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A String that represents this instance.

### ToString(double, double)

Returns a String that represents this instance.

```python theme={null}
public static string ToString(double dVal, double dConvertFactor)
```

#### Parameters

`dVal` [double](https://learn.microsoft.com/dotnet/api/system.double)

The val.

`dConvertFactor` [double](https://learn.microsoft.com/dotnet/api/system.double)

The convert factor.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A String that represents this instance.
