> For the complete documentation index, see [llms.txt](https://docs.wisej.com/hybrid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wisej.com/hybrid/start/api/converters/wisej.hybrid.shared.converters.unitconverters.md).

# UnitConverters

Namespace: **Wisej.Hybrid.Shared.Converters**

Assembly: **Wisej.Hybrid** (3.5.0.0)

Static class with built-in unit converters.

{% tabs %}
{% tab title="C#" %}

```csharp
public class UnitConverters
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class UnitConverters
```

{% endtab %}
{% endtabs %}

## Methods

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)AtmospheresToPascals(atm)

Converts Atmospheres to Pascals.

| Parameter | Type                                                          | Description                       |
| --------- | ------------------------------------------------------------- | --------------------------------- |
| **atm**   | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in Atmospheres convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *atm* in Pascals.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)CelsiusToFahrenheit(celsius)

Converts temperatures from Celsius to Fahrenheit.

| Parameter   | Type                                                          | Description                      |
| ----------- | ------------------------------------------------------------- | -------------------------------- |
| **celsius** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in Celcius to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *celsius* in degrees Fahrenheit.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)CelsiusToKelvin(celsius)

Converts temperatures from Celsius to Kelvin.

| Parameter   | Type                                                          | Description                      |
| ----------- | ------------------------------------------------------------- | -------------------------------- |
| **celsius** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in Celcius to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *celsius* in degrees Kelvin.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)CoordinatesToKilometers(lat1, lon1, lat2, lon2)

Calculates the distance between two coordinates in kilometers.

| Parameter | Type                                                          | Description       |
| --------- | ------------------------------------------------------------- | ----------------- |
| **lat1**  | [Double](https://docs.microsoft.com/dotnet/api/system.double) | First latitude.   |
| **lon1**  | [Double](https://docs.microsoft.com/dotnet/api/system.double) | First longitude.  |
| **lat2**  | [Double](https://docs.microsoft.com/dotnet/api/system.double) | Second latitude.  |
| **lon2**  | [Double](https://docs.microsoft.com/dotnet/api/system.double) | Second longitude. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The distance in kilometers.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)CoordinatesToMiles(lat1, lon1, lat2, lon2)

Calculates the distance between two coordinates in miles.

| Parameter | Type                                                          | Description       |
| --------- | ------------------------------------------------------------- | ----------------- |
| **lat1**  | [Double](https://docs.microsoft.com/dotnet/api/system.double) | First latitude.   |
| **lon1**  | [Double](https://docs.microsoft.com/dotnet/api/system.double) | First longitude.  |
| **lat2**  | [Double](https://docs.microsoft.com/dotnet/api/system.double) | Second latitude.  |
| **lon2**  | [Double](https://docs.microsoft.com/dotnet/api/system.double) | Second longitude. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The distance in miles.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)DegreesPerSecondToHertz(degrees)

Converts degrees per second to hertz.

| Parameter   | Type                                                          | Description                                 |
| ----------- | ------------------------------------------------------------- | ------------------------------------------- |
| **degrees** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in degrees per second to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *degrees* in hertz.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)DegreesPerSecondToRadiansPerSecond(degrees)

Converts degrees per second to radians per second.

| Parameter   | Type                                                          | Description                                 |
| ----------- | ------------------------------------------------------------- | ------------------------------------------- |
| **degrees** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in degrees per second to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *degrees* in radians per second.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)DegreesToRadians(degrees)

Converts degrees to radian.

| Parameter   | Type                                                          | Description                      |
| ----------- | ------------------------------------------------------------- | -------------------------------- |
| **degrees** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in degrees to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *degrees* in radian.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)FahrenheitToCelsius(fahrenheit)

Converts temperatures from Fahrenheit to Celsius.

| Parameter      | Type                                                          | Description                         |
| -------------- | ------------------------------------------------------------- | ----------------------------------- |
| **fahrenheit** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in Fahrenheit to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *fahrenheit* in degrees Celsius.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)HectopascalsToKilopascals(hpa)

Converts Kilopascals to Hectopascals.

| Parameter | Type                                                          | Description                        |
| --------- | ------------------------------------------------------------- | ---------------------------------- |
| **hpa**   | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in Hectopascals convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *hpa* in Kilopascals.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)HectopascalsToPascals(hpa)

Converts Hectopascals to Pascals.

| Parameter | Type                                                          | Description                        |
| --------- | ------------------------------------------------------------- | ---------------------------------- |
| **hpa**   | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in Hectopascals convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *hpa* in Pascals.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)HertzToDegreesPerSecond(hertz)

Converts hertz to degrees per second.

| Parameter | Type                                                          | Description                                 |
| --------- | ------------------------------------------------------------- | ------------------------------------------- |
| **hertz** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in degrees per second to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *hertz* in degrees per second.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)HertzToRadiansPerSecond(hertz)

Converts hertz to radians per second.

| Parameter | Type                                                          | Description                                 |
| --------- | ------------------------------------------------------------- | ------------------------------------------- |
| **hertz** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in radians per second to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *hertz* in radians per second.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)InternationalFeetToMeters(internationalFeet)

International survey foot defined as exactly 0.3048 meters by convention in 1959. This is the most common modern foot measure.

| Parameter             | Type                                                          | Description |
| --------------------- | ------------------------------------------------------------- | ----------- |
| **internationalFeet** | [Double](https://docs.microsoft.com/dotnet/api/system.double) |             |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double).

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)KelvinToCelsius(kelvin)

Converts temperatures from Kelvin to Celsius.

| Parameter  | Type                                                          | Description                     |
| ---------- | ------------------------------------------------------------- | ------------------------------- |
| **kelvin** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in Kelvin to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *kelvin* in degrees Celcius.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)KilogramsToPounds(kilograms)

Converts kilograms to pounds.

| Parameter     | Type                                                          | Description                        |
| ------------- | ------------------------------------------------------------- | ---------------------------------- |
| **kilograms** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in kilograms to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *kilograms* in pounds.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)KilometersToMiles(kilometers)

Converts distances from kilometers to miles.

| Parameter      | Type                                                          | Description                         |
| -------------- | ------------------------------------------------------------- | ----------------------------------- |
| **kilometers** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in kilometers to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *kilometers* in miles.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)KilopascalsToHectopascals(kpa)

Converts Kilopascals to Hectopascals.

| Parameter | Type                                                          | Description                       |
| --------- | ------------------------------------------------------------- | --------------------------------- |
| **kpa**   | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in Kilopascals convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *kpa* in Hectopascals.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)KilopascalsToPascals(kpa)

Converts Kilopascals to Pascals.

| Parameter | Type                                                          | Description                       |
| --------- | ------------------------------------------------------------- | --------------------------------- |
| **kpa**   | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in Kilopascals convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *kpa* in Pascals.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)MetersToInternationalFeet(meters)

International survey foot defined as exactly 0.3048 meters by convention in 1959. This is the most common modern foot measure.

| Parameter  | Type                                                          | Description |
| ---------- | ------------------------------------------------------------- | ----------- |
| **meters** | [Double](https://docs.microsoft.com/dotnet/api/system.double) |             |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double).

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)MetersToUSSurveyFeet(meters)

Exactly 1200/3937 meters by definition. In decimal terms approximately 0.304 800 609 601 219 meters. Variation from the common international foot of exactly 0.3048 meters may only be considerable over large survey distances.

| Parameter  | Type                                                          | Description |
| ---------- | ------------------------------------------------------------- | ----------- |
| **meters** | [Double](https://docs.microsoft.com/dotnet/api/system.double) |             |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double).

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)MilesToKilometers(miles)

Converts distances from miles to kilometers.

| Parameter | Type                                                          | Description                    |
| --------- | ------------------------------------------------------------- | ------------------------------ |
| **miles** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in miles to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *miles* in kilometers.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)MilesToMeters(miles)

Converts distances from miles to meters.

| Parameter | Type                                                          | Description                    |
| --------- | ------------------------------------------------------------- | ------------------------------ |
| **miles** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in miles to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *miles* in meters.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)PascalsToAtmospheres(pascals)

Converts Pascals to Atmospheres.

| Parameter   | Type                                                          | Description                   |
| ----------- | ------------------------------------------------------------- | ----------------------------- |
| **pascals** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in Pascals convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *pascals* in Atmospheres.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)PoundsToKilograms(pounds)

Converts pounds to kilograms.

| Parameter  | Type                                                          | Description                     |
| ---------- | ------------------------------------------------------------- | ------------------------------- |
| **pounds** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in pounds to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *pounds* in kilograms.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)PoundsToStones(pounds)

Converts pounds to stones.

| Parameter  | Type                                                          | Description                     |
| ---------- | ------------------------------------------------------------- | ------------------------------- |
| **pounds** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in pounds to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *pounds* in stones.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)RadiansPerSecondToDegreesPerSecond(radians)

Converts radians per second to degrees per second.

| Parameter   | Type                                                          | Description                                 |
| ----------- | ------------------------------------------------------------- | ------------------------------------------- |
| **radians** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in radians per second to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *radians* in degrees per second.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)RadiansPerSecondToHertz(radians)

Converts radians per second to hertz.

| Parameter   | Type                                                          | Description                                 |
| ----------- | ------------------------------------------------------------- | ------------------------------------------- |
| **radians** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in radians per second to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *radians* in hertz.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)RadiansToDegrees(radians)

Converts radians to degrees.

| Parameter   | Type                                                          | Description                      |
| ----------- | ------------------------------------------------------------- | -------------------------------- |
| **radians** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in radians to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *radians* in degrees.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)StonesToPounds(stones)

Converts stones to pounds.

| Parameter  | Type                                                          | Description                     |
| ---------- | ------------------------------------------------------------- | ------------------------------- |
| **stones** | [Double](https://docs.microsoft.com/dotnet/api/system.double) | The value in stones to convert. |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double). The value from *stones* in pounds.

### ![](https://github.com/iceteagroup/wisej-docs-hybrid/blob/master/.gitbook/assets/static.png)USSurveyFeetToMeters(usFeet)

Exactly 1200/3937 meters by definition. In decimal terms approximately 0.304 800 609 601 219 meters. Variation from the common international foot of exactly 0.3048 meters may only be considerable over large survey distances.

| Parameter  | Type                                                          | Description |
| ---------- | ------------------------------------------------------------- | ----------- |
| **usFeet** | [Double](https://docs.microsoft.com/dotnet/api/system.double) |             |

**Returns:** [Double](https://docs.microsoft.com/dotnet/api/system.double).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wisej.com/hybrid/start/api/converters/wisej.hybrid.shared.converters.unitconverters.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
