# Unit Converter

![](/files/-Mihilz07av_pov5Msz_)

![](/files/-Mihilz2MIYZo-uwl-er) - [\[source code\]](https://github.com/ladybug-tools/ladybug-grasshopper/blob/master/ladybug_grasshopper/src//LB%20Unit%20Converter.py)

Convert a value or list of values from one unit to another.

### Inputs

* **values \[Required]**

Values to be converted from one unit type to another.

* **from\_u \[Required]**

Text indicating the units of the input \_values (eg. 'C')

* **to\_u \[Required]**

Text indicating the units of the output values (eg. 'K')

### Outputs

* **all\_u**

A text string indicating all possible units that can be plugged into \_from\_u and \_to\_u.

* **values**

The converted numerical values.


---

# Agent Instructions: 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:

```
GET https://docs.ladybug.tools/ladybug-primer/components/4_extra/unit_converter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
