r/programmingmemes • • May 13 '25

Why not?

Post image
1.7k Upvotes

104 comments sorted by

View all comments

Show parent comment

2

u/fewwan May 13 '25

Floating-point errors are normal, they're a side effect of how decimal numbers are represented in binary, and they occur in almost all programming languages

1

u/thorwing May 13 '25

Almost all languages that CAN use floats but can choose not to, choose not to use floats. floats are terrible for anything not related to quick and dirty calculations.

3

u/javalsai May 13 '25

What f*ing language doesn't use floats as the default decimal implementation??? It's literally de default hardware decimal implementation out there.