Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by chongli

10 days ago

Yes I’m aware. It’s a work around but doesn’t give you a sensible ordering the way most people expect, i.e:

-2 > 1 (in C)

Which is why I prefer to leave <,> undefined in C and just take the magnitude if I want to compare complex numbers.

0 comments

chongli

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities