{"id":133315,"date":"2025-01-19T02:40:51","date_gmt":"2025-01-18T20:40:51","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=133315"},"modified":"2025-01-19T02:40:51","modified_gmt":"2025-01-18T20:40:51","slug":"%d0%be%d0%b1%d1%8a%d0%b5%d0%ba%d1%82-number-javascript","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=133315","title":{"rendered":"\u041e\u0431\u044a\u0435\u043a\u0442 Number javascript"},"content":{"rendered":"<p>\u041e\u0431\u044a\u0435\u043a\u0442 <span style=\"color: #0066cc;\">Number<\/span> \u0432 JavaScript \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u042d\u0442\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0447\u0438\u0441\u043b\u0430\u043c\u0438, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043d\u0430\u0434 \u043d\u0438\u043c\u0438. \u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0442\u0438\u043f\u0430 <span style=\"color: #0066cc;\">Number<\/span> \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 <span style=\"color: #0066cc;\">Number<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>, \u043e\u0434\u043d\u0430\u043a\u043e \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432 JavaScript \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430.<\/p>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0442\u0438\u043f\u0430 <span style=\"color: #0066cc;\">Number<\/span><\/strong><br \/>\n\u0427\u0438\u0441\u043b\u0430 \u0432 JavaScript \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438:<\/p>\n<p><strong>\u041f\u0440\u044f\u043c\u043e \u043a\u0430\u043a \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b:<\/strong><\/p>\n<blockquote><p>let num1 = <span style=\"color: #cc66cc;\">42<\/span>;<br \/>\nlet num2 = <span style=\"color: #cc66cc;\">3.14<\/span>;<\/p><\/blockquote>\n<p><strong>\u0421 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 <span style=\"color: #0066cc;\">Number<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>:<\/strong><\/p>\n<blockquote><p>let num3 = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Number<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">42<\/span><span style=\"color: #66cc66;\">)<\/span>;<br \/>\nlet num4 = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Number<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3.14<\/span><span style=\"color: #66cc66;\">)<\/span>;<\/p><\/blockquote>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442-\u043e\u0431\u0435\u0440\u0442\u043a\u0443 \u0432\u043e\u043a\u0440\u0443\u0433 \u0447\u0438\u0441\u043b\u0430, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u043f\u0440\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439.<\/p>\n<p><strong>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 <span style=\"color: #0066cc;\">Number<\/span><\/strong><br \/>\n\u041e\u0431\u044a\u0435\u043a\u0442 <span style=\"color: #0066cc;\">Number<\/span> \u0438\u043c\u0435\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u0432\u0430\u0436\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b:<\/p>\n<p><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">MAX_VALUE<\/span>: \u041d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u0432 JavaScript. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0432\u043d\u043e 1.7976931348623157e+308.<\/p>\n<blockquote><p><span style=\"color: #006600;\">console<\/span>.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">MAX_VALUE<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 1.7976931348623157e+308<\/span><\/p><\/blockquote>\n<p><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">MIN_VALUE<\/span>: \u041d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u0432 JavaScript. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0432\u043d\u043e 5e-324.<\/p>\n<blockquote><p><span style=\"color: #006600;\">console<\/span>.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">MIN_VALUE<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 5e-324<\/span><\/p><\/blockquote>\n<p><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">NaN<\/span>: \u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0449\u0435\u0435 <span style=\"color: #ff0000;\">&#171;\u043d\u0435 \u0447\u0438\u0441\u043b\u043e&#187;<\/span>. \u041e\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438.<\/p>\n<blockquote><p><span style=\"color: #006600;\">console<\/span>.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">NaN<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ NaN<\/span><\/p><\/blockquote>\n<p><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">NEGATIVE_INFINITY<\/span>: \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u044c. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0447\u0438\u0441\u043b\u0443 \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c <span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">MIN_VALUE<\/span>.<\/p>\n<blockquote><p><span style=\"color: #006600;\">console<\/span>.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">NEGATIVE_INFINITY<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ -Infinity<\/span><\/p><\/blockquote>\n<p><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">POSITIVE_INFINITY<\/span>: \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u044c. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0447\u0438\u0441\u043b\u0443 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c <span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">MAX_VALUE<\/span>.<\/p>\n<blockquote><p><span style=\"color: #006600;\">console<\/span>.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">POSITIVE_INFINITY<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ Infinity<\/span><\/p><\/blockquote>\n<p><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #006600;\">EPSILON<\/span>: \u041c\u0430\u043b\u0435\u0439\u0448\u0430\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0447\u0438\u0441\u043b\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 JavaScript. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439. \u041f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0432\u043d\u043e 2.220446049250313e-16.<\/p>\n<blockquote><p><span style=\"color: #006600;\">console<\/span>.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #006600;\">EPSILON<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 2.220446049250313e-16<\/span><\/p><\/blockquote>\n<p><strong>\u041c\u0435\u0442\u043e\u0434\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u0430 <span style=\"color: #0066cc;\">Number<\/span><\/strong><br \/>\n\u041e\u0431\u044a\u0435\u043a\u0442 <span style=\"color: #0066cc;\">Number<\/span> \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0447\u0438\u0441\u043b\u0430\u043c\u0438:<\/p>\n<p><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">isFinite<\/span><span style=\"color: #66cc66;\">(<\/span>value<span style=\"color: #66cc66;\">)<\/span>: \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c.<\/p>\n<blockquote><p><span style=\"color: #006600;\">console<\/span>.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">isFinite<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">42<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">isFinite<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Infinity<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ false<\/span><\/p><\/blockquote>\n<p><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #006600;\">isInteger<\/span><span style=\"color: #66cc66;\">(<\/span>value<span style=\"color: #66cc66;\">)<\/span>: \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c.<\/p>\n<blockquote><p><span style=\"color: #006600;\">console<\/span>.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #006600;\">isInteger<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">42<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #006600;\">isInteger<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3.14<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ false<\/span><\/p><\/blockquote>\n<p><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">isNaN<\/span><span style=\"color: #66cc66;\">(<\/span>value<span style=\"color: #66cc66;\">)<\/span>: \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <span style=\"color: #0066cc;\">NaN<\/span>.<\/p>\n<blockquote><p><span style=\"color: #006600;\">console<\/span>.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">isNaN<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">NaN<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">isNaN<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">42<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ false<\/span><\/p><\/blockquote>\n<p><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #006600;\">isSafeInteger<\/span><span style=\"color: #66cc66;\">(<\/span>value<span style=\"color: #66cc66;\">)<\/span>: \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b <span style=\"color: #66cc66;\">(<\/span>\u043e\u0442 &#8212;<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>^<span style=\"color: #cc66cc;\">53<\/span> &#8212; <span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span> \u0434\u043e <span style=\"color: #cc66cc;\">2<\/span>^<span style=\"color: #cc66cc;\">53<\/span> &#8212; <span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>.<\/p>\n<blockquote><p><span style=\"color: #006600;\">console<\/span>.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #006600;\">isSafeInteger<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">42<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #006600;\">isSafeInteger<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #006600;\">MAX_SAFE_INTEGER<\/span> + <span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ false<\/span><\/p><\/blockquote>\n<p><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">parseFloat<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">string<\/span><span style=\"color: #66cc66;\">)<\/span>: \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0447\u0438\u0441\u043b\u043e \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439.<\/p>\n<blockquote><p><span style=\"color: #006600;\">console<\/span>.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">parseFloat<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#171;3.14&#187;<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 3.14<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">parseFloat<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#171;abc&#187;<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ NaN<\/span><\/p><\/blockquote>\n<p><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">parseInt<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">string<\/span>, radix<span style=\"color: #66cc66;\">)<\/span>: \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f <span style=\"color: #66cc66;\">(<\/span>radix<span style=\"color: #66cc66;\">)<\/span>.<\/p>\n<blockquote><p><span style=\"color: #006600;\">console<\/span>.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">parseInt<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#171;101&#187;<\/span>, <span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 5 (\u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435)<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">parseInt<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#171;FF&#187;<\/span>, <span style=\"color: #cc66cc;\">16<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 255 (\u0432 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435)<\/span><\/p><\/blockquote>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/strong><\/p>\n<blockquote><p><span style=\"color: #808080; font-style: italic;\">\/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">isFinite<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">42<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">isFinite<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Infinity<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ false<\/span><\/p>\n<p><span style=\"color: #808080; font-style: italic;\">\/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #006600;\">isInteger<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">42<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #006600;\">isInteger<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3.14<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ false<\/span><\/p>\n<p><span style=\"color: #808080; font-style: italic;\">\/\/ \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0447\u0438\u0441\u043b\u043e<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">parseFloat<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#171;3.14&#187;<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 3.14<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">parseInt<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#171;FF&#187;<\/span>, <span style=\"color: #cc66cc;\">16<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 255<\/span><\/p><\/blockquote>\n<p><strong>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/strong><br \/>\n\u041e\u0431\u044a\u0435\u043a\u0442 <span style=\"color: #0066cc;\">Number<\/span> \u0432 JavaScript \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0425\u043e\u0442\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445, \u0438\u043d\u043e\u0433\u0434\u0430 \u0431\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 <span style=\"color: #0066cc;\">Number<\/span> \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0439.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0431\u044a\u0435\u043a\u0442 Number \u0432 JavaScript \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u042d\u0442\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0447\u0438\u0441\u043b\u0430\u043c\u0438, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043d\u0430\u0434 \u043d\u0438\u043c\u0438. \u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0442\u0438\u043f\u0430 Number \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 Number(), \u043e\u0434\u043d\u0430\u043a\u043e \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432 JavaScript \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0442\u0438\u043f\u0430 Number \u0427\u0438\u0441\u043b\u0430 \u0432 JavaScript \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":133259,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[463],"tags":[],"class_list":["post-133315","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript"],"views":306,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/133315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=133315"}],"version-history":[{"count":1,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/133315\/revisions"}],"predecessor-version":[{"id":133316,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/133315\/revisions\/133316"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/133259"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=133315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=133315"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=133315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}