% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/postprocess__token_stats.R
\name{.as_scalar_int}
\alias{.as_scalar_int}
\title{Cast a Value to a Single Integer}
\usage{
.as_scalar_int(value, default = NA_integer_)
}
\arguments{
\item{value}{Value to cast.}

\item{default}{Fallback scalar integer when casting fails.}
}
\value{
Scalar integer.
}
\description{
Internal helper that converts to a scalar integer, returning \code{default}
when conversion fails or yields a missing value.
}
\keyword{internal}
