MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


  • Prev by Date: Re: Is there really no longer any way to Find cells by cell style?
  • Next by Date: Re: Rendering image to array
  • Previous by thread: Re: method used in NonlinearFit
  • Next by thread: One-liner for files?