[#BloombergLP-bdlb-NumericParseUtil-characterToDigit] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NumericParseUtil.adoc[NumericParseUtil]::characterToDigit :relfileprefix: ../../../ :mrdocs: Determine whether the specified `character` represents a digit in the specified `base`; return the numeric equivalent if so, and ‐1 otherwise. The behavior is undefined if either `character` or `base` is 0 and unless `2 <= base` and `base <= 36` (i.e., bases where digits are representable by characters in the range [`0`‐`9`], [`a`‐`z`], or [`A`‐`Z`]). == Synopsis Declared in `<bdlb_numericparseutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int characterToDigit( char character, int base); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#