J.digit: Formatting Decimal places

Description Usage Arguments Value Examples

Description

J.digit format the numbers

Usage

1
J.digit(x, k)

Arguments

x

Number needed to be formated

k

the number of decimals to show.

Value

rounded number with k decimals

Examples

1
2
3
4
specify_decimal(1234, 5)
"1234.00000"
specify_decimal(0.1234, 5)
"0.12340"

SophiaJia/Jsurvformat documentation built on May 9, 2019, 1:52 p.m.