round {math} R Documentation

rounds the values in its first argument to the specified number of decimal places (default 0).

Description

See 'Details' about "round to even" when rounding off a 5.

Usage

round(x,
    decimals = 0);

Arguments

x

a numeric vector. Or, for round and signif, a complex vector.

decimals

integer indicating the number of decimal places (round) or significant digits (signif) to be used. Negative values are allowed (see 'Details'). [as integer]

Details

Authors

SMRUCC genomics Institute

Value

this function returns data object of type double.

clr value class

Examples


[Package math version 2.33.856.6961 Index]