aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2025-04-07 18:40:29 +0100
committerPádraig Brady <P@draigBrady.com>2025-04-07 18:40:29 +0100
commitf1df3e703f19e2d2529d8c0af75a5a4d0278c83a (patch)
tree866da434ad0d0434dda862029c19ed1ab2e59b78
parentbuild: update gnulib submodule to latest (diff)
downloadcoreutils-f1df3e703f19e2d2529d8c0af75a5a4d0278c83a.tar.gz
coreutils-f1df3e703f19e2d2529d8c0af75a5a4d0278c83a.zip
doc: mention workaround for combining hex floats with suffixes
* doc/coreutils.texi (hexDuration): Mention the p style exponent trick.
-rw-r--r--doc/coreutils.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 2d1f162aa..d1c282f56 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.