Wednesday, July 7, 2021

The Floating Point Precision Error

If you are familiar with Javascript, or perhaps any other language, you may have run into an issue like this:

console.log(0.1 * 0.2) 
// Returns 0.020000000000000004
// Should return 0.02




from DZone.com Feed https://ift.tt/3xsYb39

No comments:

Post a Comment