]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 28 May 2000 16:31:09 +0000 (16:31 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 28 May 2000 16:31:09 +0000 (16:31 +0000)
2000-05-28  Ulrich Drepper  <drepper@redhat.com>

* manual/arith.texi (Rounding Functions): Fix documentation of trunc.
Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.

ChangeLog
manual/arith.texi

index e354f02aaa277fa5a1b2199e31122c2821f67623..b6446b41a5b8d2ba679c8dee56e62ab45468e8e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-28  Ulrich Drepper  <drepper@redhat.com>
+
+       * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
+       Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
+
 2000-05-27  Andreas Jaeger  <aj@suse.de>
 
        * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
index 511c7ce37fcb3d84cdc2857e86affd46ebd22335..2112ef2fce4fd175348c5702dd86751c8e5c9af8 100644 (file)
@@ -29,8 +29,8 @@ These functions are declared in the header files @file{math.h} and
 
 The C language defines several integer data types: integer, short integer,
 long integer, and character, all in both signed and unsigned varieties.
-The GNU C compiler extends the language to contain long long integers 
-as well.  
+The GNU C compiler extends the language to contain long long integers
+as well.
 @cindex signedness
 
 The C integer types were intended to allow code to be portable among
@@ -79,7 +79,7 @@ structure with @emph{at least} N bits, use one of these:
 @item uint64_least_t
 @end itemize
 
-If you don't need a specific storage size, but want the data structure 
+If you don't need a specific storage size, but want the data structure
 that allows the fastest access while having at least N bits (and
 among data structures with the same access speed, the smallest one), use
 one of these:
@@ -95,7 +95,7 @@ one of these:
 @item uint64_fast_t
 @end itemize
 
-If you want an integer with the widest range possible on the platform on 
+If you want an integer with the widest range possible on the platform on
 which it is being used, use one of the following.  If you use these,
 you should write code that takes into account the variable size and range
 of the integer.
@@ -1398,7 +1398,9 @@ integer, returning that value as a @code{double}.  Thus, @code{floor
 @comment math.h
 @comment ISO
 @deftypefunx {long double} truncl (long double @var{x})
-@code{trunc} is another name for @code{floor}
+The @code{trunc} functions round @var{x} towards zero to the nearest
+integer (returned in floating-point format).  Thus, @code{trunc (1.5)}
+is @code{1.0} and @code{trunc (-1.5)} is @code{-1.0}.
 @end deftypefun
 
 @comment math.h
@@ -2131,7 +2133,7 @@ returned on overflow is @code{ULONG_MAX} (@pxref{Range of Type}).
 If @var{string} depicts a negative number, @code{strtoul} acts the same
 as @var{strtol} but casts the result to an unsigned integer.  That means
 for example that @code{strtoul} on @code{"-1"} returns @code{ULONG_MAX}
-and an input more negative than @code{LONG_MIN} returns 
+and an input more negative than @code{LONG_MIN} returns
 (@code{ULONG_MAX} + 1) / 2.
 
 @code{strtoul} sets @var{errno} to @code{EINVAL} if @var{base} is out of