[#BloombergLP-bslim-FuzzUtil-consumeNumber-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/FuzzUtil.adoc[FuzzUtil]::consumeNumber
:relfileprefix: ../../../
:mrdocs:

Return a value of (template parameter) `TYPE` in the range &lsqb;min &period;&period; max&rsqb;&hyphen;&hyphen; where `min` and `max` are the minimum and maximum values representable by the `TYPE` &hyphen;&hyphen; based on at most the next `sizeof(TYPE) &plus; 1` bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed&period; If `0 &equals;&equals; fuzzDataView&hyphen;&gt;length()`, return the minimum value of `TYPE`&period; This function does not participate in overload resolution unless either `bsl&colon;&colon;is&lowbar;integral&lt;TYPE&gt;&colon;&colon;value` or `bsl&colon;&colon;is&lowbar;floating&lowbar;point&lt;TYPE&gt;&colon;&colon;value` is `true`&period; The behavior is undefined if `bsl&colon;&colon;is&lowbar;same&lt;TYPE, bool&gt;&colon;&colon;value` or `bsl&colon;&colon;is&lowbar;same&lt;TYPE, long double&gt;` is `true`&period;

== Synopsis

Declared in `&lt;bslim&lowbar;fuzzutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
TYPE
consumeNumber(xref:BloombergLP/bslim/FuzzDataView.adoc[FuzzDataView]* fuzzDataView)
requires bsl&colon;&colon;is&lowbar;floating&lowbar;point&lt;TYPE&gt;&colon;&colon;value;
----


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