format_round: Format numbers with rounding

View source: R/cli.R

format_roundR Documentation

Format numbers with rounding

Description

Format numbers with rounding

Usage

format_round(x, digits = 2L)

Arguments

x

Numeric vector. The numbers to format.

digits

Integer. (Maximum) number of digits to be displayed after the decimal point. Defaults to 2.

Value

Character vector. The formatted numbers.


shapr documentation built on Aug. 25, 2025, 5:11 p.m.