JavaScript Tip: Avoiding Problems with Decimal Math

preview_player
Показать описание
Though not an exciting topic, dealing with decimal math in javascript is an important topic. Because of the way JavaScript stores numbers, it may provide inaccurate results when doing math on decimals. In this tutorial I will show you to solutions.

Would you like to help keep this channel going?

For more resources on JavaScript:

Courses offered on Udemy: Getting Started or Advanced Topics at a huge discount:

New Mastering Regular Expressions in JavaScript:

Tutorials referred to in this video:

#javascript #AllThingsJavaScriptLLC
Рекомендации по теме
Комментарии
Автор

Wow Sir, please never stop doing this vídeos. I love to learn something new every time

carlosfernandez
Автор

Thank you sir! It's very slow paced so it helps me understand better!

daegudude
Автор

Really thank you sir! I was going to get crazy with numbers

dkcaliskan
Автор

With voice of yours, everything you say I believe!

RameenFallschirmjager
Автор

I love your videos!! Thank you so much always for this amazing video!

marczwiers
Автор

i got this question during interview in reputable logistic chain company

rickvian
Автор

Awesome tutorial!!
How about new Big(3).div(new Big(10.2)).times(new Big(10.2)) ? it suppose to give new 3 but gives less than or greater than 2 depends on DP, RM configuration.

KosalaSubasinghe
Автор

love this videos, waiting for nodeJs.

seenuvasanv
Автор

Javascript is drunk! It needs to sniff some cocaine to sober up!

RameenFallschirmjager
Автор

Thank you sir for the educative video. Can't we just use .toFixed(2) to get the correct result instead of using a library? For example, (0.1+0.2).toFixed(2) gives us 0.30

abdimussa
Автор

Could you please suggest some libraries for Dates? because i find Dates frustrating in javascript

ronjobs
Автор

Thank you sir! It's very slow paced so it helps me understand better!

amyrikgirl