Home Forums Vector.equals()

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1813
    hessinemaaoui
    Keymaster

    Could anyone tell me how Vector.equals() checks the entries? Is there any precision tolerance for doubles?

    I have a problem here:
    A, B are Vector of doubles, for the code:
            assertTrue(A.toString().equals(B.toString()));
            assertTrue(A.equals(B));
    I got True for the first line but False for the second.

    Any thought? Thx

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.