DECIMAL NO. TO ROUND NO. ??

Discussion of Common Lisp
Post Reply
ketan
Posts: 2
Joined: Wed Aug 04, 2010 12:53 am

DECIMAL NO. TO ROUND NO. ??

Post by ketan » Wed Aug 04, 2010 12:59 am

HOW TO CONVERT DECIMAL NO TO ROUND NO..
EX. 3.14 SHOULD COME 3. OR 3.78, 3.86 SHOULD ALSO COME 3.

ramarren
Posts: 613
Joined: Sun Jun 29, 2008 4:02 am
Location: Warsaw, Poland
Contact:

Re: DECIMAL NO. TO ROUND NO. ??

Post by ramarren » Wed Aug 04, 2010 2:26 am

Please don't use all capital letters, it is unreadable and distracting. In answer to your question, you want one of the rounding function, possibly FLOOR or TRUNCATE.

Post Reply