From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/elisp/rounding-operations.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 devdocs/elisp/rounding-operations.html (limited to 'devdocs/elisp/rounding-operations.html') diff --git a/devdocs/elisp/rounding-operations.html b/devdocs/elisp/rounding-operations.html new file mode 100644 index 00000000..fc187005 --- /dev/null +++ b/devdocs/elisp/rounding-operations.html @@ -0,0 +1,14 @@ +

Rounding Operations

The functions ffloor, fceiling, fround, and ftruncate take a floating-point argument and return a floating-point result whose value is a nearby integer. ffloor returns the nearest integer below; fceiling, the nearest integer above; ftruncate, the nearest integer in the direction towards zero; fround, the nearest integer.

Function: ffloor float +

This function rounds float to the next lower integral value, and returns that value as a floating-point number.

+
Function: fceiling float +

This function rounds float to the next higher integral value, and returns that value as a floating-point number.

+
Function: ftruncate float +

This function rounds float towards zero to an integral value, and returns that value as a floating-point number.

+
Function: fround float +

This function rounds float to the nearest integral value, and returns that value as a floating-point number. Rounding a value equidistant between two integers returns the even integer.

+
+

+ Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
+ https://www.gnu.org/software/emacs/manual/html_node/elisp/Rounding-Operations.html +

+
-- cgit v1.2.3