From: Paul Eggert Date: Mon, 7 Apr 2025 17:40:29 +0000 (+0100) Subject: doc: mention workaround for combining hex floats with suffixes X-Git-Tag: v9.7~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1df3e703f19e2d2529d8c0af75a5a4d0278c83a;p=thirdparty%2Fcoreutils.git doc: mention workaround for combining hex floats with suffixes * doc/coreutils.texi (hexDuration): Mention the p style exponent trick. --- 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.