Extensions of R rounding functions for distributed matrices.
# S4 method for ddmatrix
round(x, digits = 0)# S4 method for ddmatrix
ceiling(x)
# S4 method for ddmatrix
floor(x)
numeric distributed matrix
integer indicating the number of decimal places
(round()
) or significant digits (signif()
) to be used.
Negative values are allowed (see 'Details').
Returns a distributed matrix.
Rounding to a negative number of digits means rounding to a power of ten, so
for example round(x, digits = -2)
rounds to the nearest hundred.