comparison lispref/numbers.texi @ 8017:ae1a594ebb1d

entered into RCS
author Richard M. Stallman <rms@gnu.org>
date Thu, 23 Jun 1994 14:02:40 +0000
parents 9a9e88e65617
children 89f8d7f3bd73
comparison
equal deleted inserted replaced
8016:51c69c76c3cc 8017:ae1a594ebb1d
569 569
570 @node Rounding Operations 570 @node Rounding Operations
571 @section Rounding Operations 571 @section Rounding Operations
572 @cindex rounding without conversion 572 @cindex rounding without conversion
573 573
574 The functions @code{ffloor}, @code{fceil}, @code{fround} and 574 The functions @code{ffloor}, @code{fceiling}, @code{fround} and
575 @code{ftruncate} take a floating point argument and return a floating 575 @code{ftruncate} take a floating point argument and return a floating
576 point result whose value is a nearby integer. @code{ffloor} returns the 576 point result whose value is a nearby integer. @code{ffloor} returns the
577 nearest integer below; @code{fceil}, the nearest integer above; 577 nearest integer below; @code{fceiling}, the nearest integer above;
578 @code{ftruncate}, the nearest integer in the direction towards zero; 578 @code{ftruncate}, the nearest integer in the direction towards zero;
579 @code{fround}, the nearest integer. 579 @code{fround}, the nearest integer.
580 580
581 @defun ffloor float 581 @defun ffloor float
582 This function rounds @var{float} to the next lower integral value, and 582 This function rounds @var{float} to the next lower integral value, and
583 returns that value as a floating point number. 583 returns that value as a floating point number.
584 @end defun 584 @end defun
585 585
586 @defun fceil float 586 @defun fceiling float
587 This function rounds @var{float} to the next higher integral value, and 587 This function rounds @var{float} to the next higher integral value, and
588 returns that value as a floating point number. 588 returns that value as a floating point number.
589 @end defun 589 @end defun
590 590
591 @defun ftruncate float 591 @defun ftruncate float