Ramarren wrote:There is a chapter on multiple value returning functions in Practical Common Lisp.
Search found 3 matches
- Mon Aug 23, 2010 6:21 pm
- Forum: Common Lisp
- Topic: How to convert a float to integer?[Solved]
- Replies: 4
- Views: 9448
Re: How to convert a float to integer?
That's great. Thanks!
- Sun Aug 22, 2010 7:58 pm
- Forum: Common Lisp
- Topic: How to convert a float to integer?[Solved]
- Replies: 4
- Views: 9448
Re: How to convert a float to integer?
Thx. I tried
(setf a (round 2.1))
and it works.
I was just confused by the TWO return value.
What should I do, if I want to capture these 2 value in 2 different variable by using "round"?
(setf a (round 2.1))
and it works.
I was just confused by the TWO return value.
What should I do, if I want to capture these 2 value in 2 different variable by using "round"?
- Sat Aug 21, 2010 7:10 pm
- Forum: Common Lisp
- Topic: How to convert a float to integer?[Solved]
- Replies: 4
- Views: 9448
How to convert a float to integer?[Solved]
I thought the function 'round' might work, but it fails to do what I want.
Neither does 'coerce'. So I'm wondering is there any built-in function that works on this, say convert 2.1 to 2 and 2.9 to 3?
Thanks for answering a newbie's question.
Neither does 'coerce'. So I'm wondering is there any built-in function that works on this, say convert 2.1 to 2 and 2.9 to 3?
Thanks for answering a newbie's question.