MathGroup Archive 2006

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

Search the Archive

Re: MemberQ


Even though the two entries are formatted as .7, the one generated by
the Range statement has already accumulated enough error to make it
fail MatchQ. You can see this with {Range[0., 1., .1], .7} // FullForm

On 8/8/06, Bruce Colletti <vze269bv at verizon.net> wrote:
> Re Mathematica 5.2.0.0.
>
> Since 0.7 is in the set {0.0, 0.1, 0.2,..., 0.9, 1.0}, why does MemberQ[Range[0., 1., .1], .7] return False?
>
> Thankx.
>
> Bruce
>
>


-- 
http://chris.chiasson.name/


  • Prev by Date: Re: MemberQ
  • Next by Date: Re: MemberQ
  • Previous by thread: Re: MemberQ
  • Next by thread: Re: MemberQ