(ffloor number &optional (divisor 1)) | Function: Same as FLOOR, but returns first value as a float.
|
| | Mentioned in:
CLtL2 - 12.6. Type Conversions and Component Extractions on Numbers
HyperSpec - Function FLOOR, FFLOOR, CEILING, FCEILING, TRUNCATE, FTRUNCATE, ROUND, FROUND
|
| | |
(floor number &optional (divisor 1)) | Function: Return the greatest integer not greater than number, or number/divisor. The second returned value is (mod number divisor).
|
Example:
(defun time-string (time)
"Return a string representing this internal time in min:secs."
(multiple-value-bind (min sec)
(floor
(round time
internal-time-units-per-second)
60)
(format nil "~2d:~2,'0d" min sec)))
| Mentioned in:
CLtL2 - 12.1. Precision, Contagion, and Coercion
CLtL2 - 12.4. Arithmetic Operations
CLtL2 - 12.6. Type Conversions and Component Extractions on Numbers
CLtL2 - 4.8. Type Conversion Function
CLtL2 - 7.10.1. Constructs for Handling Multiple Values
CLtL2 - 7.10.2. Rules Governing the Passing of Multiple Values
CLtL2 - 9.1. Declaration Syntax
HyperSpec - Function FLOOR, FFLOOR, CEILING, FCEILING, TRUNCATE, FTRUNCATE, ROUND, FROUND
On Lisp - Dispatching Macro Characters
PCL - basic math
|
| | |