2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: math round
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
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
|
|
|
|
```
|