roundDown: Round down a negative number

Description Usage Arguments Details Examples

View source: R/roundDown.R

Description

Rounds a negative number to the nearest, more negative number to a specified decimal place.

Usage

1
roundDown(x, dig)

Arguments

x

number to be rounded

dig

number of decimal places to be rounded

Details

roundDown is used to round a negative Z-statistic critical value, which has (infinitely) many significant digits, to the nearest dig decimal place which is more extreme than the critical value itself. This is done to preserve the desired type I error level.

Examples

1
2
roundDown(-1.95456, 2)
# [1] -1.96

factorial2x2 documentation built on April 28, 2020, 1:09 a.m.