1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 07:42:10 +01:00

Document underflow limitation in Randomizer::getFloat()

This commit is contained in:
Louis-Arnaud Catoire
2026-02-01 21:45:21 +01:00
committed by Christian Weiske
parent 058ea1e842
commit 1ada637cc8

View File

@@ -341,6 +341,15 @@ Lat: +69.244304 Lng: -53.548951
to obtain the desired behavioral properties.
</para>
</note>
<caution>
<para>
Underflow is intentionally left unhandled in the γ-section algorithm.
This may result in incorrect values being returned for intervals with
boundaries in the subnormal range of floating point numbers, i.e.
for values smaller than approximately
<literal>2<superscript>-1020</superscript></literal> (about <literal>8.9e-308</literal>).
</para>
</caution>
</refsect1>
<refsect1 role="seealso">