#2485 is(2.0=2) returns false

closed
nobody
Lisp Core (471)
5
2012-11-02
2012-10-31
Anonymous
No

It appears that the decimal of a number is not evaluated as equal to the number itself. I believe it may have roots in the data type the strings are translated into, but I wish to ask the rationale (so that I can work robustly with it) or if it is a bug. Thanks.

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-10-31

    This is not a bug. Read the documentation for "=" which mentions that when used with is, this means, essentially, syntactic equality. You want to use is(equal(2.0,2)) which does return true.

     
  • Barton Willis

    Barton Willis - 2012-11-02
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks