forked from extern/nushell
28 lines
425 B
Markdown
28 lines
425 B
Markdown
|
---
|
||
|
title: math round
|
||
|
layout: command
|
||
|
version: 0.59.0
|
||
|
---
|
||
|
|
||
|
Applies the round function to a list of numbers
|
||
|
|
||
|
## Signature
|
||
|
|
||
|
```> math round --precision```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
- `--precision {number}`: digits of precision
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
Apply the round function to a list of numbers
|
||
|
```shell
|
||
|
> [1.5 2.3 -3.1] | math round
|
||
|
```
|
||
|
|
||
|
Apply the round function with precision specified
|
||
|
```shell
|
||
|
> [1.555 2.333 -3.111] | math round -p 2
|
||
|
```
|