Skip to content

Commit 1ada637

Browse files
lacatoirecweiske
authored andcommitted
Document underflow limitation in Randomizer::getFloat()
1 parent 058ea1e commit 1ada637

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

reference/random/random/randomizer/getfloat.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,15 @@ Lat: +69.244304 Lng: -53.548951
341341
to obtain the desired behavioral properties.
342342
</para>
343343
</note>
344+
<caution>
345+
<para>
346+
Underflow is intentionally left unhandled in the γ-section algorithm.
347+
This may result in incorrect values being returned for intervals with
348+
boundaries in the subnormal range of floating point numbers, i.e.
349+
for values smaller than approximately
350+
<literal>2<superscript>-1020</superscript></literal> (about <literal>8.9e-308</literal>).
351+
</para>
352+
</caution>
344353
</refsect1>
345354

346355
<refsect1 role="seealso">

0 commit comments

Comments
 (0)