]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: mention workaround for combining hex floats with suffixes
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Apr 2025 17:40:29 +0000 (18:40 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 7 Apr 2025 17:40:29 +0000 (18:40 +0100)
* doc/coreutils.texi (hexDuration): Mention the p style exponent trick.

doc/coreutils.texi

index 2d1f162aa48566067625ec8b098a93afb1504e17..d1c282f562f25b796823f7d223c1bfa67ad1e8bf 100644 (file)
@@ -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.