decimals: Produce nicely rounded numbers

View source: R/ExtraFunctions.R

decimalsR Documentation

Produce nicely rounded numbers

Description

Internal function for putting extra zeros on numbers (if needed).

Usage

decimals(number, places)

Arguments

number

A number to be rounded.

places

Number of decimal places.

Details

None.

Value

Returns a nicely formatted number. For example, 0.3 to three decimal places would be rendered as 0.300.

Examples

decimals(number = 0.3, places = 3)


MendelianRandomization documentation built on May 29, 2024, 11:36 a.m.