% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/number_utils.R
\name{format_num}
\alias{format_num}
\title{Format a numeric value with locale-aware separators}
\usage{
format_num(x, fmt_str, marks)
}
\arguments{
\item{x}{Numeric value to format.}

\item{fmt_str}{Character string \code{sprintf} format specification
(\emph{e.g.,} \code{"\%.1f"}). Used only for |x| < 1000.}

\item{marks}{List with \code{big.mark} and \code{decimal.mark} as returned
by \code{\link{resolve_number_marks}}.}
}
\value{
Character string with the formatted number.
}
\description{
General-purpose number formatter used by all display functions. For values
\eqn{\ge} 1000 (in absolute value), inserts the appropriate
thousands separator. Fixes negative-zero display artefacts.
}
\keyword{internal}
