<small id='m9as7'></small><noframes id='m9as7'>

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

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

      1. <legend id='m9as7'><style id='m9as7'><dir id='m9as7'><q id='m9as7'></q></dir></style></legend>
      2. 存储 20 位数字的数据类型

        时间:2023-07-27

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

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

                <legend id='6YRIq'><style id='6YRIq'><dir id='6YRIq'><q id='6YRIq'></q></dir></style></legend>
                  <tbody id='6YRIq'></tbody>

                1. <tfoot id='6YRIq'></tfoot>
                2. 本文介绍了存储 20 位数字的数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有一个 20 位的数字,哪种数据类型支持存储这个数字?我已经尝试了很长时间,但我已经超出了范围.

                  I have a number of 20 digit, which datatype will support to store this number? I have tried long, double but I 'm getting out of range.

                  号码 = 48565664968483514466

                  Number = 48565664968483514466

                  然后我必须将此数字转换为 Base36 以生成条形码.

                  Then I have to convert this number to Base36 to generate the barcode.

                  推荐答案

                  BigInteger:
                  

                  BigInteger 类分配尽可能多的内存来保存它被要求保存的所有数据位,并且还提供与 Java 的所有原始整数运算符和所有相关方法类似的操作java.lang.Math.

                  The BigInteger class allocates as much memory as it needs to hold all the bits of data it is asked to hold and also provides operations analogues to all of Java's primitive integer operators and for all relevant methods from java.lang.Math.

                  声明为

                  BigInteger bi1 =  new BigInteger("12345678900123");
                  

                  这篇关于存储 20 位数字的数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Java 允许将字节分配给 java.lang.Short 但不能分配给 下一篇:从long到int的可能有损转换,JAVA

                  相关文章

                  最新文章

                  <legend id='sLin7'><style id='sLin7'><dir id='sLin7'><q id='sLin7'></q></dir></style></legend>
                  <i id='sLin7'><tr id='sLin7'><dt id='sLin7'><q id='sLin7'><span id='sLin7'><b id='sLin7'><form id='sLin7'><ins id='sLin7'></ins><ul id='sLin7'></ul><sub id='sLin7'></sub></form><legend id='sLin7'></legend><bdo id='sLin7'><pre id='sLin7'><center id='sLin7'></center></pre></bdo></b><th id='sLin7'></th></span></q></dt></tr></i><div id='sLin7'><tfoot id='sLin7'></tfoot><dl id='sLin7'><fieldset id='sLin7'></fieldset></dl></div>
                3. <small id='sLin7'></small><noframes id='sLin7'>

                4. <tfoot id='sLin7'></tfoot>

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