Rounding and Formatting Numbers

preview_player
Показать описание
There are a number of built-in methods that we can use in JavaScript to round or format numbers as Strings or extract numbers from Strings.
This video covers a collection of these methods.

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

I would recommend moving these types of videos to the beginning of your play list!

nigelbrie
Автор

Thank you always for providing these amazing tutorials, with you being there, javascript will never get phased out. respect for your passion to express every detail that matters.

rotrose
Автор

how to use in input value? like [1.24] before

TheAlibaadshah
Автор

This was sooo helpful to me : )) I used - toFixed(2) too my lunch calculator and it worked beautifully ^^ thnx man

valentas
Автор

Great explanations on those. Would there be an easy way to round a number to a value of either x.0 or x.5? So for example 50.58 would get rounded to 50.5 and 50.15 would get rounded to 50.0.

Jeff-
Автор

Lifesaver .. I was about to have a heart attack add the formats *_*
Thank you

ssty
welcome to shbcf.ru