% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/snapshot.R
\name{round_snapshot_numbers}
\alias{round_snapshot_numbers}
\title{Round Floating-Point Numbers in Snapshot Text}
\usage{
round_snapshot_numbers(text, digits)
}
\arguments{
\item{text}{Character vector of snapshot text lines.}

\item{digits}{Integer; number of decimal places to keep (passed to
\code{round()}).  Must be a finite integer.}
}
\value{
Character vector with floating-point numbers rounded.
}
\description{
Replaces every floating-point literal (decimal or scientific notation) found
in a character vector of snapshot lines with its value rounded to
\code{digits} decimal places.  Integer literals that contain no decimal
point and no exponent are left untouched, so index ranges such as
\code{[1:1071]} are never modified.
}
\details{
\code{digits} is passed directly to \code{\link[base]{round}}: 0 rounds to
the nearest integer, negative values round to the left of the decimal point.
}
\keyword{internal}
