66
Floating point Maths (programming.dev)

Courtesy of @DevLeader@programming.dev though not sure if he's the original author of it.

you are viewing a single comment's thread
view the rest of the comments
[-] deegeese@sopuli.xyz 6 points 7 months ago
[-] FizzyOrange@programming.dev 8 points 7 months ago

It does. x-x == 0 is true unless x is NaN or infinity.

load more comments (5 replies)
this post was submitted on 30 Mar 2024
66 points (97.1% liked)

Programmer Humor

19623 readers
1 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS