2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: math eval
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
Evaluate a math expression into a number
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> math eval (math expression)```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `math expression`: the math expression to evaluate
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2022-03-04 13:10:09 +01:00
|
|
|
Evaluate math in the pipeline
|
2022-02-14 03:22:51 +01:00
|
|
|
```shell
|
|
|
|
> '10 / 4' | math eval
|
|
|
|
```
|