this post was submitted on 14 Apr 2024
328 points (94.1% liked)

linuxmemes

19849 readers
563 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] jkrtn@lemmy.ml 8 points 3 months ago (1 children)

Shouldn't people familiar with integer arithmetic should be able to struggle to something like x == 2 * (x/2) to test if it is odd or even? Or just bitwise x & 1?

[โ€“] Hagdos@lemmy.world 1 points 3 months ago

If round(x/2) != x/2