roundf: Round and format to specified decimal place

View source: R/roundf.R

roundfR Documentation

Round and format to specified decimal place

Description

Rounds and formats a number to specified decimal place.

Usage

roundf(x, decimals)

Arguments

x

Number(s)

decimals

Number of decimals

Value

Formatted number(s) in character format

Examples

roundf(0.345957, 2)

cfree14/freeR documentation built on Aug. 22, 2023, 11:12 p.m.