summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 2458a9f2d3..92c34a8bc3 100644
--- a/sv.c
+++ b/sv.c
@@ -11853,6 +11853,14 @@ Perl_sv_vcatpvfn_flags(pTHX_ SV *const sv, const char *const pat, const STRLEN p
int zerotail = 0; /* how many extra zeros to append */
int exponent = 0; /* exponent of the floating point input */
+ /* XXX: denormals, NaN, Inf.
+ *
+ * For example with denormals, (assuming the vanilla
+ * 64-bit double): the exponent is zero. 1xp-1074 is
+ * the smallest denormal and the smallest double, it
+ * should be output as 0x0.0000000000001p-1022 to
+ * match its internal structure. */
+
vend = S_hextract(aTHX_ nv, &exponent, vhex, NULL);
S_hextract(aTHX_ nv, &exponent, vhex, vend);