From f1df3e703f19e2d2529d8c0af75a5a4d0278c83a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 7 Apr 2025 18:40:29 +0100 Subject: [PATCH] doc: mention workaround for combining hex floats with suffixes * doc/coreutils.texi (hexDuration): Mention the p style exponent trick. --- doc/coreutils.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 2d1f162aa4..d1c282f562 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -18914,8 +18914,8 @@ C locale (@pxref{Floating point}) followed by an optional unit: @samp{d} for days @end display @macro hexDuration -Note it's best to avoid combining suffixes with hexadecimal arguments, -as any @samp{d} will @emph{not} be interpreted as a suffix. +A hexadecimal number can precede a @samp{d} suffix only if the number +has a @samp{p} style exponent, e.g., @samp{0x1p0d} means one day. @end macro @hexDuration A duration of 0 disables the associated timeout. -- 2.47.3