R/Round.R

Defines functions Round

Documented in Round

Round = function(x, n=0) 
{
  return(sign(x)*trunc(abs(x)*10^n + 0.5)/10^n)
}
asancpt/ncar documentation built on Oct. 2, 2020, 10:24 a.m.