out.digits: output value with correct digits and trailing zero

Description Usage Arguments Details Examples

View source: R/out.digits.R

Description

Function to present a value with correct digits and trailing zero

Usage

1
out.digits(x, dig = 3)

Arguments

x

is the value

dig

is the number of significant digits

Details

This is a function to present a value with correct digits and trailing zero. Numbers >= 10000, or <= 0.0001 will be presented in scientific format

Examples

1
2
3
4
## Not run: 
out.digits(1234)

## End(Not run)

ncappc documentation built on May 1, 2019, 7:31 p.m.