% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xml_utils.R
\name{num_lead}
\alias{num_lead}
\title{Extract the leading number from a dimension string}
\usage{
num_lead(x)
}
\arguments{
\item{x}{A character such as \code{"500"}, \code{"40px"}, \code{"100\%"}, or \code{NA}.}
}
\value{
Numeric value, or \code{NA_real_} if none is found.
}
\description{
Extract the leading number from a dimension string
}
\keyword{internal}
