Author Topic: Two points that are the same - but not equal?..!  (Read 5104 times)

0 Members and 1 Guest are viewing this topic.

ElpanovEvgeniy

  • Water Moccasin
  • Posts: 1569
  • Moscow (Russia)
Re: Two points that are the same - but not equal?..!
« Reply #15 on: January 24, 2008, 09:21:38 AM »
Code: [Select]
(equal 1 0.99 0.01)
(< (abs(- 1 0.99)) 0.01)
(equal 1 0.99001 0.01)
(< (abs(- 1 0.99001)) 0.01)

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Two points that are the same - but not equal?..!
« Reply #16 on: January 24, 2008, 10:03:38 AM »
Why not using directly the equal function ?

Because I suffer from classic over engineeringitus?



I aplogize for my ineptitude, especially to the orginal poser.

Why is Paul a poser?  :-D

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Two points that are the same - but not equal?..!
« Reply #17 on: January 24, 2008, 10:08:06 AM »
Why is Paul a poser?  :-D

Damn! Purely unintentional I assure you!  :-o

Fixed (thanks for the good eye).
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Two points that are the same - but not equal?..!
« Reply #18 on: January 24, 2008, 10:11:13 AM »
Feels good to be not alone. :lmao:
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Two points that are the same - but not equal?..!
« Reply #19 on: January 24, 2008, 10:20:57 AM »
Why is Paul a poser?  :-D

Damn! Purely unintentional I assure you!  :-o

Fixed (thanks for the good eye).

 :-)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Paul Munford

  • Guest
Re: Two points that are the same - but not equal?..!
« Reply #20 on: January 26, 2008, 03:55:10 PM »
Uh, I had a few days of... I'm glad you guys have been having fun in my abscence! Thanks for the tips. I will try them out and see how I get on :-)

Paul Munford

  • Guest
Re: Two points that are the same - but not equal?..!
« Reply #21 on: January 29, 2008, 03:13:20 PM »
Good call! Fuzz factor does the trick for me... Works like a charm :->