|
open up a console in Chrome and type 0.1 + 0.2 and see what Javascriptthinks the answer is
Henrik, open up a console in Chrome and type 0.1 + 0.2 and see whatMost BL is ADD, SUB, MULT or DIV anyway.
Javascript thinks the answer is 😊 So already Javascript cannot do the
basic maths you describe, due it only supporting floating point numbers,
without having to implement some fixed point maths library. Try any kind of
date manipulation and you'll find yourself in a similar mess without
resorting to moment.js or some other helper library.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.