% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/comp_utils.R
\name{safe_round}
\alias{safe_round}
\title{Safe rounding that handles \code{NULL} and NA}
\usage{
safe_round(x, digits)
}
\arguments{
\item{x}{Numeric value to round.}

\item{digits}{Integer number of decimal places.}
}
\value{
Rounded numeric value, or NA_real_ if input is \code{NULL}/NA/empty.
}
\description{
Rounds numeric values while gracefully handling \code{NULL}, empty, and NA inputs.
}
\keyword{internal}
