Skip to contents

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)
#> [1] 5.6
round0(5.601, 2)
#> [1] "5.60"