re: Learning the Granular Details of a Programming Language? VIEW POST


It is good to have an understanding of how the language works. This includes the features of a language and their use cases and a decent understanding of the internals of the language so that your code can be efficient. I am not sure it is really important to know the far corner case oddities of a language. In ~4 years of using javascript I have never once encountered a situation where an oddity like the one you present or the famous .1 * .2 bug had any impact in my code or anyone I have worked with.


the famous .1 * .2 bug

This is not a bug by any mean, this is how floating point arithmetic works in a nutshell.

This behaviour is the same in all the languages that deal with floating point operations. It has nothing to do with javascript.

code of conduct - report abuse