public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] manual: clarify defintions of floating point exponent bounds (bug 31518)
@ 2024-05-21  8:26 Andreas Schwab
  0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2024-05-21  8:26 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c35cad016b2a5bc71fa2330f26e35afdef327ccc

commit c35cad016b2a5bc71fa2330f26e35afdef327ccc
Author: Andreas Schwab <schwab@suse.de>
Date:   Wed May 8 16:55:40 2024 +0200

    manual: clarify defintions of floating point exponent bounds (bug 31518)
    
    For decimal exponent bounds the range is inclusive, for binary exponent
    bounds the range is exclusive.

Diff:
---
 manual/lang.texi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/manual/lang.texi b/manual/lang.texi
index 40cd9ddd77..cd90ff60d2 100644
--- a/manual/lang.texi
+++ b/manual/lang.texi
@@ -1065,7 +1065,7 @@ macros are supposed to be at least @code{10}.
 @standards{C90, float.h}
 This is the smallest possible exponent value for type @code{float}.
 More precisely, it is the minimum negative integer such that the value
-@code{FLT_RADIX} raised to this power minus 1 can be represented as a
+@code{FLT_RADIX} raised to one less than this power can be represented as a
 normalized floating point number of type @code{float}.
 
 @item DBL_MIN_EXP
@@ -1078,7 +1078,7 @@ These are similar to @code{FLT_MIN_EXP}, but for the data types
 @item FLT_MIN_10_EXP
 @standards{C90, float.h}
 This is the minimum negative integer such that @code{10} raised to this
-power minus 1 can be represented as a normalized floating point number
+power can be represented as a normalized floating point number
 of type @code{float}.  This is supposed to be @code{-37} or even less.
 
 @item DBL_MIN_10_EXP
@@ -1091,8 +1091,8 @@ These are similar to @code{FLT_MIN_10_EXP}, but for the data types
 @standards{C90, float.h}
 This is the largest possible exponent value for type @code{float}.  More
 precisely, this is the maximum positive integer such that value
-@code{FLT_RADIX} raised to this power minus 1 can be represented as a
-floating point number of type @code{float}.
+@code{FLT_RADIX} raised to one less than this power can be represented as a
+finite floating point number of type @code{float}.
 
 @item DBL_MAX_EXP
 @itemx LDBL_MAX_EXP
@@ -1103,7 +1103,7 @@ These are similar to @code{FLT_MAX_EXP}, but for the data types
 @item FLT_MAX_10_EXP
 @standards{C90, float.h}
 This is the maximum positive integer such that @code{10} raised to this
-power minus 1 can be represented as a normalized floating point number
+power can be represented as a finite floating point number
 of type @code{float}.  This is supposed to be at least @code{37}.
 
 @item DBL_MAX_10_EXP

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-21  8:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-21  8:26 [glibc] manual: clarify defintions of floating point exponent bounds (bug 31518) Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).