round0: Rounds numbers but keeps trailing zeros

View source: R/round0.R

round0R Documentation

Rounds numbers but keeps trailing zeros

Description

This function is a shortcut for formatC(x, digits, format = "f").

Usage

round0(x, digits)

Arguments

x

a numeric vector

digits

an integer indicating the number of decimal places

Value

a character string

Examples

round(5.601, 2)
round0(5.601, 2)


EstherHerbert/Useful.functions documentation built on Jan. 31, 2025, 10:41 a.m.