[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help needed; Number and Precision Problem
- To: info-mcl
- Subject: Help needed; Number and Precision Problem
- From: L66@psuvm.psu.edu
- Date: 26 Jan 92 02:43:32 GMT
- Newsgroups: comp.lang.lisp, comp.lang.lisp.mcl
- Organization: Penn State University
Hi, Netters. I need your help. I am using MCL 1.3.2.
My question is how can I save just two digits after decimal point.
(float 1/3) returns 0.3333333333333. However, I want keep just 0.33 instead of
whole precision. (float (/ num1 num2)) ===> x.xx is the form I want.
Any help will be welcomed. Many thanks in advance. L66@psuvm.psu.edu