% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers_table1.R
\name{fmt_pct}
\alias{fmt_pct}
\title{Format a proportion as a percentage string}
\usage{
fmt_pct(p, digits = 1, use_abs = FALSE)
}
\arguments{
\item{p}{Numeric scalar. A proportion (0 to 1 scale).}

\item{digits}{Integer. Decimal places for the percentage (default 1).}

\item{use_abs}{Logical. If TRUE, use absolute value (default FALSE).}
}
\value{
Character string in the form "xx.x\%", or "--" when \code{p}
is \code{NA}.
}
\description{
Format a proportion as a percentage string
}
\keyword{internal}
