# Units Module

Units in Warp Factory use functions that scale all values from S.I. units. These functions are called without pass-in values, and thus can also ignore the ().&#x20;

{% hint style="info" %}
These functions should be treated as reserved variables, make sure to avoid overlap in variable declarations to use these units properly.
{% endhint %}

For example, to set the unit scaling for some variable called `value`, which is implicitly defined in meters, we can say:

`value = 1*mm()` or `value = 1*mm`

This scales the value of 1 to mm, which would then be 0.001. This can also be used in the code to define what the units are explicitly in the code structure, such as calling `meter` which is unitary.&#x20;

The list of implemented unit scaling functions are:

* tonne
* second
* ms
* mm
* meter
* km
* kg
* gram
* cm

In addition, a few universal constants are used in the same manner as unit scaling. These are:

* G: Gravitational Constant - $$2.99792458\times10^{8}$$ \[m/s]
* c: Speed of Light - $$6.67430\times10^{-11}$$ \[m^3 / kg / s^2]


---

# 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://applied-physics.gitbook.io/warp-factory/modules/units-module.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.
