Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Re: Clip[] doesn't work as expected

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115336] Re: Clip[] doesn't work as expected
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 8 Jan 2011 03:37:19 -0500 (EST)

$Version

"8.0 for Mac OS X x86 (64-bit) (November 6, 2010)"

Clip[1.00000000000000036, {0., 1.}]

1.

Verifying that extra digits are not just suppressed for output display

% // InputForm

1.


Bob Hanlon

---- Yen Lee Loh <yenleeloh1 at gmail.com> wrote: 

=============
On Mathematica v7.0.1 on Mac OS X,


Clip[1.00000000000000036, {0., 1.}]


gives


1.0000000000000004


upon close examination of the output.  The documentation does not warn of
this behavior.
I have not checked if the same thing happens in Mathematica v8.
Just thought I would let you know.

Yen Lee



  • Prev by Date: Re: Clip[] doesn't work as expected
  • Next by Date: Re: Solving very large systems of ODEs with NDSolve
  • Previous by thread: Re: Clip[] doesn't work as expected
  • Next by thread: Re: Clip[] doesn't work as expected