429
0.30000000000000004
(feddit.de)
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.
If working in currency, work in cents and divide by 100 and round to 2 decimals for output
If working with currency use types and formating functions appropriate for currency. Not float.
I was recalling a project in perl, which doesn't have a variety of types. If you add values, you get a scalar, which will be a float if the numbers are not integers.
I am aware my statement isn't true in several languages