public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* frexp man page: FLT_RADIX vs. 2
@ 2024-01-03  1:29 Morten Welinder
  2024-01-03  1:49 ` Alejandro Colomar
  0 siblings, 1 reply; 5+ messages in thread
From: Morten Welinder @ 2024-01-03  1:29 UTC (permalink / raw)
  To: alx; +Cc: linux-man

A very minor bug:

The main body of frexp's man page says the exponent returned is for a
power of two. That agrees with, for example, the C99 standard as well
as https://en.cppreference.com/w/cpp/numeric/math/frexp

However, the sample program in the man page uses FLT_RADIX.  The value
of that macro need not be 2 so the man page should be changed to use 2
directly.

M.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-29 12:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-03  1:29 frexp man page: FLT_RADIX vs. 2 Morten Welinder
2024-01-03  1:49 ` Alejandro Colomar
2024-01-03  3:50   ` Matthew House
2024-01-03  3:57     ` Alejandro Colomar
2024-01-29 12:29       ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox