> For the complete documentation index, see [llms.txt](https://aptivi.gitbook.io/deprecated/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aptivi.gitbook.io/deprecated/nitrocid-ks-v0.1.0-beta-2-manual/fundamentals/simulated-kernel-features/calculator-and-converter.md).

# Calculator and Converter

<figure><img src="/files/iGr3e4SOh1gKHnRMtwpr" alt=""><figcaption></figcaption></figure>

The calculator is used to perform arithmetic operations, ranging from the simplest operations to the most complex ones, powered by the StringMath library. Its syntax reference can be reviewed in the below link to the official library documentation.

{% embed url="<https://github.com/miroiu/string-math/blob/master/README.md>" %}

<figure><img src="/files/ED8Y8Ze5Lgd6iE2vzWR2" alt=""><figcaption></figcaption></figure>

The unit converter, however, is used to easily convert the source units to different units, like centimeters to meters. It's powered by the UnitsNet library. You can consult the list of units UnitsNet supports here:

{% embed url="<https://github.com/angularsen/UnitsNet/tree/master/UnitsNet/GeneratedCode/Units>" %}

To use both the programs, refer to the command usages and individual explanations below.

* `calc <expression>`
  * Calculates the specific arithmetical expression
* `unitconv <unittype> <quantity> <sourceunit> <targetunit>`
  * Converts the unit by quantity and type from the source unit to the target unit

<figure><img src="/files/3XnuruCtSIBY3flgX0nP" alt=""><figcaption></figcaption></figure>

You can use the `listunits` command to get all the available units by type.
