<legend id='uH5O6'><style id='uH5O6'><dir id='uH5O6'><q id='uH5O6'></q></dir></style></legend>

  1. <tfoot id='uH5O6'></tfoot>
    <i id='uH5O6'><tr id='uH5O6'><dt id='uH5O6'><q id='uH5O6'><span id='uH5O6'><b id='uH5O6'><form id='uH5O6'><ins id='uH5O6'></ins><ul id='uH5O6'></ul><sub id='uH5O6'></sub></form><legend id='uH5O6'></legend><bdo id='uH5O6'><pre id='uH5O6'><center id='uH5O6'></center></pre></bdo></b><th id='uH5O6'></th></span></q></dt></tr></i><div id='uH5O6'><tfoot id='uH5O6'></tfoot><dl id='uH5O6'><fieldset id='uH5O6'></fieldset></dl></div>
    • <bdo id='uH5O6'></bdo><ul id='uH5O6'></ul>

    1. <small id='uH5O6'></small><noframes id='uH5O6'>

      为什么 0 小于 JavaScript 中的 Number.MIN_VALUE?

      时间:2023-06-13

          <small id='6o25A'></small><noframes id='6o25A'>

          • <bdo id='6o25A'></bdo><ul id='6o25A'></ul>
            <legend id='6o25A'><style id='6o25A'><dir id='6o25A'><q id='6o25A'></q></dir></style></legend>
              <tfoot id='6o25A'></tfoot>
                <tbody id='6o25A'></tbody>
            1. <i id='6o25A'><tr id='6o25A'><dt id='6o25A'><q id='6o25A'><span id='6o25A'><b id='6o25A'><form id='6o25A'><ins id='6o25A'></ins><ul id='6o25A'></ul><sub id='6o25A'></sub></form><legend id='6o25A'></legend><bdo id='6o25A'><pre id='6o25A'><center id='6o25A'></center></pre></bdo></b><th id='6o25A'></th></span></q></dt></tr></i><div id='6o25A'><tfoot id='6o25A'></tfoot><dl id='6o25A'><fieldset id='6o25A'></fieldset></dl></div>
                本文介绍了为什么 0 小于 JavaScript 中的 Number.MIN_VALUE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                使用 Node.js,我正在评估表达式:

                Using Node.js, I'm evaluating the expression:

                0 < Number.MIN_VALUE
                

                令我惊讶的是,这会返回 true.这是为什么?并且:我怎样才能得到可以按预期进行比较的最小可用数字?

                To my surprise, this returns true. Why is that? And: How can I get the smallest number available for which the comparison works as expected?

                推荐答案

                Number.MIN_VALUE5e-324,即float内能表示的最小正数精度,即尽可能接近零.它定义了浮动给您的最佳分辨率.

                Number.MIN_VALUE is 5e-324, i.e. the smallest positive number that can be represented within float precision, i.e. that's as close as you can get to zero. It defines the best resolution floats give you.

                现在整体最小值是 Number.NEGATIVE_INFINITY 虽然严格意义上来说这并不是真正的数字.

                Now the overall smallest value is Number.NEGATIVE_INFINITY although that's not really numeric in the strict sense.

                这篇关于为什么 0 小于 JavaScript 中的 Number.MIN_VALUE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:在不使用循环的情况下查找数字数组中的一项 下一篇:避免浏览器弹出窗口拦截器

                相关文章

              • <small id='MpO8i'></small><noframes id='MpO8i'>

              • <i id='MpO8i'><tr id='MpO8i'><dt id='MpO8i'><q id='MpO8i'><span id='MpO8i'><b id='MpO8i'><form id='MpO8i'><ins id='MpO8i'></ins><ul id='MpO8i'></ul><sub id='MpO8i'></sub></form><legend id='MpO8i'></legend><bdo id='MpO8i'><pre id='MpO8i'><center id='MpO8i'></center></pre></bdo></b><th id='MpO8i'></th></span></q></dt></tr></i><div id='MpO8i'><tfoot id='MpO8i'></tfoot><dl id='MpO8i'><fieldset id='MpO8i'></fieldset></dl></div>

                  1. <tfoot id='MpO8i'></tfoot><legend id='MpO8i'><style id='MpO8i'><dir id='MpO8i'><q id='MpO8i'></q></dir></style></legend>

                      <bdo id='MpO8i'></bdo><ul id='MpO8i'></ul>