Floor
- To: mathgroup at smc.vnet.net
- Subject: [mg8194] Floor
- From: TTCJ34A at prodigy.com ( JOHN C ERB)
- Date: Mon, 18 Aug 1997 23:24:43 -0400
- Sender: owner-wri-mathgroup at wolfram.com
>Hello Mathematica users. > >I had a very frustrating time trying to debug some work I was doing in >Mathematica. I finally pared it down to a problem with the Floor >function, and I have illustrated my concern below. I am using M 3.0 and >a Mac computer. Does anyone have any advice or could you tell me if I >am doing something wrong? > >Floor[(.7 67 10)] > >469 > >Floor[(67 10 .7)] > >468 > >Sincerely, > >Tom De Vries I tried the various permutations of (.7 67 10) using Mma 2.2.3 under Windows 95 and I have gotten 469 consistently. Is one of your .7's being represented by 0.6999999999999999 somehow? Perhaps you could try 7/10 rather than .7. Good Luck John C. Erb