Skip to contents

Rounds a number and returns a string with the required number of digits after the decimal point, including trailing zeroes, if applicable.

Usage

round0(x, digits = 0)

Arguments

x

A numeric vector.

digits

Integer indicating the number of decimal places to be used.

Value

A character string of the formatted x value(s)