MHN
Add a comment on Hacker News →
2 of 240 comments
  1. I would like to see a language use decimal by default. Under the hood, it could use floating point for certain types of calculations where less precision is required. If I want to know the answer to 0.2 + 0.1, chances are I want the answer to be 0.3. If I'm writing performance-sensitive code, maybe I can drop down a level and opt for float(0.2) + float(0.1). Are any languages doing this currently?

  2. I know that no one here cares but VBA returns 0.3

    Edit:
    however a better test of ?.1+.2-.3 in the immediate window now returns 2.77555756156289E-17 I wondered about that first result...