dp: display decimal places nicely

View source: R/auxiliary.R

dpR Documentation

display decimal places nicely

Description

display decimal places nicely

Usage

dp(x, digits)

Arguments

x

a real number (or a vector of real numbers)

digits

number of decimal places to keep

Details

keep trailing zeros

Value

a string (or a vector of strings)


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.