# Easy calculations with Typinator

With Typinator's *Inline Calculation* set, you can quickly perform calculations directly within a text document or any input field. Let's briefly explore how to use this feature:

### Instructions:

- Open Typinator and click
*Extensions*in the main menu. - Add the
*Inline Calculations*set. - You'll find this set in the 'Regular Expressions' section on the left, which includes a predefined abbreviation.

### Performing a Calculation:

Type **1+1=?** and Typinator will instantly convert it to the result '2'.

Having made a basic calculation, we can now modify this to retain the calculation and append the result.

### Further Instructional Details:

- Duplicate the existing abbreviation, remove the question mark from it, and then press the 'Cmd' key."
- You should now have
**FORMULA=\⌘**in your abbreviation field. - Now change the expansion to the following:

```
$0{{#$1}}
```

### Performing a Calculation:

Type 1+1= and press the 'cmd' key and Typinator will instantly add '2' as result and it will look like **1+1=2**.

This inline calculation feature makes it convenient to perform on-the-fly calculations without needing to open a separate calculator or application. It's a handy tool for users who frequently work with numbers and need quick results within their text-based workflow.

## Do you want to do some more math?

Here is an example to round your result to a full integer value.

- Duplicate the abbreviation like before.
- Change the abbreviation to
**FORMULA=!** - Add the following to your expansion.

```
{{#round($1)}}
```

### Performing a Calculation:

Type 1+3,6=! and Typinator will instantly round it to the result '5'.

For additional calculation capabilities, download the new Inline calculation 2.0 in our *Extensions* section on the website.