Finite {\itshape number} primitive\hypertarget{md_sfcode_node_modules_ext_node_modules_type_docs_finite_autotoc_md9943}{}\doxysection{$<$tt$>$finite/coerce$<$/tt$>$}\label{md_sfcode_node_modules_ext_node_modules_type_docs_finite_autotoc_md9943}
Follows \href{number.md\#numbercoerce}{\texttt{ {\ttfamily number/coerce}}} additionally rejecting {\ttfamily Infinity} and {\ttfamily -\/Infinity} values ({\ttfamily null} is returned if given values coerces to them)


\begin{DoxyCode}{0}
\DoxyCodeLine{const coerceToFinite = require("{}type/finite/coerce"{});}
\DoxyCodeLine{}
\DoxyCodeLine{coerceToFinite("{}12"{}); // 12}
\DoxyCodeLine{coerceToFinite(Infinity); // null}
\DoxyCodeLine{coerceToFinite(null); // null }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_ext_node_modules_type_docs_finite_autotoc_md9944}{}\doxysection{$<$tt$>$finite/ensure$<$/tt$>$}\label{md_sfcode_node_modules_ext_node_modules_type_docs_finite_autotoc_md9944}
If given argument is a finite number coercible value (via \href{\#finitecoerce}{\texttt{ {\ttfamily finite/coerce}}}) returns result number. Otherwise {\ttfamily Type\+Error} is thrown.


\begin{DoxyCode}{0}
\DoxyCodeLine{const ensureFinite = require("{}type/finite/ensure"{});}
\DoxyCodeLine{}
\DoxyCodeLine{ensureFinite(12); // "{}12"{}}
\DoxyCodeLine{ensureFinite(null); // Thrown TypeError: null is not a finite number }

\end{DoxyCode}
 