# Unit Converter

![](https://894783789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPHXQ1I3gb93zpLrLZf%2Fuploads%2Fgit-blob-bbd53e424b39c60344f3de29128b3459f45ff855%2FUnit_Converter.png?alt=media)

![](https://894783789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPHXQ1I3gb93zpLrLZf%2Fuploads%2Fgit-blob-dc410eda0cc3dfbbf30104a3717f6d006619b351%2FUnit_Converter.png?alt=media) - [\[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.
