doc: mention workaround for combining hex floats with suffixes

* doc/coreutils.texi (hexDuration): Mention the p style exponent trick.
This commit is contained in:
Paul Eggert
2025-04-07 18:40:29 +01:00
committed by Pádraig Brady
parent 905afc91a5
commit f1df3e703f

View 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.