Is there a simple way to return the fractional part of a number in common lisp?
At the moment I am using
- Code: Select all
(multiple-value-call (lambda (x y)(declare (ignore x)) y) (floor 1.5))
but this seems a bit verbose.
(multiple-value-call (lambda (x y)(declare (ignore x)) y) (floor 1.5))stackman wrote:Hi,
Is there a simple way to return the fractional part of a number in common lisp?
At the moment I am using
- Code: Select all
(multiple-value-call (lambda (x y)(declare (ignore x)) y) (floor 1.5))
but this seems a bit verbose.
Users browsing this forum: Google [Bot] and 1 guest