forked from extern/nushell
23 lines
302 B
Markdown
23 lines
302 B
Markdown
|
---
|
||
|
title: math eval
|
||
|
layout: command
|
||
|
version: 0.59.0
|
||
|
---
|
||
|
|
||
|
Evaluate a math expression into a number
|
||
|
|
||
|
## Signature
|
||
|
|
||
|
```> math eval (math expression)```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
- `math expression`: the math expression to evaluate
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
Evalulate math in the pipeline
|
||
|
```shell
|
||
|
> '10 / 4' | math eval
|
||
|
```
|