> ## 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/lib/VM.Managed.Utility)\
Assembly: VM.dll

This class is to represent the special convert.

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

#### Inheritance

object ←
[Convert](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.Managed.Utility.Convert.md)

## Properties

### DToR

Gets the Degree to Radius.

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

#### Property Value

double

### RToD

Gets the Radius to Degree.

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

#### Property Value

double

### SignificantFigure

Gets the significant figure.

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

#### Property Value

int

## Methods

### GetContrastColor(Color)

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

#### Parameters

`baseColor` Color

#### Returns

Color

### ToString(double)

Returns a String that represents this instance.

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

#### Parameters

`dVal` double

The val.

#### Returns

string

A String that represents this instance.

### ToString(Vector)

Returns a String that represents this instance.

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

#### Parameters

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

#### Returns

string

A String that represents this instance.

### ToString(double, double)

Returns a String that represents this instance.

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

#### Parameters

`dVal` double

The val.

`dConvertFactor` double

The convert factor.

#### Returns

string

A String that represents this instance.
