% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit_utils.R
\name{fix_negative_zero}
\alias{fix_negative_zero}
\title{Fix negative zero in formatted strings}
\usage{
fix_negative_zero(x, marks = NULL)
}
\arguments{
\item{x}{Character vector of formatted numbers.}

\item{marks}{Optional list with \code{big.mark} and \code{decimal.mark} as
returned by \code{\link{resolve_number_marks}}. When \code{NULL}, uses
the default US period decimal.}
}
\value{
Character vector with negative zeros corrected.
}
\description{
Corrects floating-point rounding artifacts that produce "-0.00" or similar
negative zero strings. Works on character vectors, replacing patterns like
"-0.00", "-0.000", \emph{etc.} with their positive equivalents, even when embedded
within larger strings (\emph{e.g.,} "(-0.00, 1.23)" becomes "(0.00, 1.23)").
}
\keyword{internal}
