[#BloombergLP-bdljsn-NumberUtil-asUlong]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/NumberUtil.adoc[NumberUtil]::asUlong
:relfileprefix: ../../../
:mrdocs:

Load the specified `result` with the specified `value`, even if a non&hyphen;zero status is returned (truncating fractional digits if necessary)&period; Return 0 on success, `k&lowbar;OVERFLOW` if `value` is larger than can be represented by `result`, `k&lowbar;UNDERFLOW` if `value` is smaller than can be represented by `result`, and `k&lowbar;NOT&lowbar;INTEGRAL` if `value` is not an integral number (i&period;e&period;, there is a fractional part)&period; The behavior is undefined unless `isValidNumber(value)` is `true`&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;numberutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
asUlong(
    unsigned long* result,
    std::string&lowbar;view const& value);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
