Numbers in JavaScript, or why 10000000000000000 === 10000000000000001 == true - Evan Farrer

Опубликовано: 23 Сентябрь 2016
на канале: UtahJS
1,042
19

www.utahjs.com

2016 UtahJS Conference
Friday, September 16, 2016

Slides: https://docs.google.com/presentation/...

Here is a general outline of what I would like to present: 1. Introduction to number bases a. Counting in base 10 b. Counting in base 2 2. Common representing numbers on computers a. Integers i. Representation ii. Two’s complement iii. Precision and rounding errors b. Floats i. Representation ii. Mantissa and exponent iii. Precision and rounding errors 3. JavaScript a. Why JavaScript only has floats i. What about parseInt? b. Numbers must be rounded to nearest representation c. Representation of 10000000000000000 as a float d. Representation of 10000000000000001 as a float e. Arguments for and against adding integers to JavaScript. 4. Conclusion and questions.


Смотрите видео Numbers in JavaScript, or why 10000000000000000 === 10000000000000001 == true - Evan Farrer онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь UtahJS 23 Сентябрь 2016, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,042 раз и оно понравилось 19 людям.