*BSD News Article 54268


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!chi-news.cic.net!newsfeed.internetmci.com!in2.uu.net!winternet.com!news
From: jdb@robigo.winternet.com (John D. Boggs)
Newsgroups: comp.unix.bsd.freebsd.misc,gnu.emacs.help
Subject: Floating point arithmetic in ELisp.
Date: 2 Nov 1995 12:37:00 GMT
Organization: StarNet Communications, Inc
Lines: 13
Message-ID: <47ae1c$68e@blackice.winternet.com>
NNTP-Posting-Host: robigo.winternet.com
X-Newsreader: knews 0.9.2
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:8405 gnu.emacs.help:29676

I am teaching myself LISP using the lisp interaction mode in Emacs,
and it doesn't seem to like floating point arithmetic.  For instance,
the expression (+ 3.14 2.71) returns 5.8499999999999996.  I was
curious, is this typical of Emacs 19.29, or is it a result of running
under FreeBSD-2.0.5-950622-SNAP?  I don't foresee needing floating
point with what I have in mind, but you never know ...

-- 

John D. Boggs            \ The great thing about human language is
jdb@robigo.winternet.com  \   that it prevents us from sticking to
                           \    the matter at hand.  -Lewis Thomas