this post was submitted on 02 Jan 2025
819 points (99.3% liked)

Programmer Humor

35465 readers
102 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

~~Stolen~~ Cross-posted from here: https://fosstodon.org/@foo/113731569632505985

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 17 points 4 months ago (2 children)

Technically, floating point also imitates irrational and whole numbers as well. Not all numbers though, you'd need a more uhm... elaborate structure to represent complex numbers, surreal numbers, vectors, matrices, and so on.

[–] [email protected] 7 points 4 months ago

It does not even imitate all rationals. For example 1/3.

[–] [email protected] 6 points 4 months ago (1 children)
[–] [email protected] 7 points 4 months ago (1 children)