3 ms·
>If somebody does not understand the implications of a computation such as a floating-point 0.1 + 0.2, they should not be using floating-point. "float" is usua
by drekipus 3y ago
>If somebody does not understand the implications of a computation such as a floating-point 0.1 + 0.2, they should not be using floating-point.
"float" is usually the second thing taught in the math tutorial, right after "int", in many languages.
JavaScript and many other languages hide many things away and just call everything "a number" which is a float by disguise.
"Decimal" types are usually hidden in some standard library, and not as a first class primitive type of the language.
Stop victim blaming, that's not going to get the discussion anywhere. You HAVE to acknowledge that the first option is non-obvious of its flaws.
- deleted 3y ago[deleted]