roundDown {factorial2x2} | R Documentation |
Round down a negative number
Description
Rounds a negative number to the nearest, more negative number to a specified decimal place.
Usage
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
roundDown(-1.95456, 2)
# [1] -1.96
[Package factorial2x2 version 0.2.0 Index]