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

        <legend id='OuSkr'><style id='OuSkr'><dir id='OuSkr'><q id='OuSkr'></q></dir></style></legend><tfoot id='OuSkr'></tfoot>

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

        C++十进制数据类型

        C++ decimal data types(C++十进制数据类型)
          <tbody id='GT1XP'></tbody>

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

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

          • <bdo id='GT1XP'></bdo><ul id='GT1XP'></ul>

                  本文介绍了C++十进制数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有没有办法在我的 C++ 程序中使用十进制数据类型,例如 decimal32decimal64decimal128?

                  Is there a way to use decimal data types such as decimal32, decimal64 or decimal128in my C++ programs?

                  推荐答案

                  Decimal TR 并非为所有编译器实现.一些编译器,例如 gcc,实现了 C Decimal TR 并在 C++ 中提供相应的扩展.过去有一个可用的 C++ Decimal TR 的开源实现,但我没有找到它.如果您的编译器不支持十进制类型,您最好的选择可能是为 IBM 的 decNumber 库创建一个包装器.

                  The classes from the Decimal TR are not implemented for all compilers. Some compilers, e.g., gcc, implement the C Decimal TR and provide the corresponding extensions in C++, too. In the past there was an open source implementation for the C++ Decimal TR available but I failed to locate it. If your compiler doesn't support the decimal types, your best option is probably to create a wrapper for IBM's decNumber library.

                  为了改善 C++ 未来的情况,我创建了一个 计划更新 TR,我将把当前的 TR 变成一个完整的提案,为下一次 C++ 委员会会议(4 月在布里斯托尔举行)做好准备,试图让它被采纳C++ 标准,可能进入 2014 年计划的修订版.我的实现是我日常工作的一部分,我不能决定它是否可以公开使用,尽管有一些希望它可以开源在某个时候.

                  To improve the situation in the future of C++, I have created a plan to update the TR and I'm going to turn the current TR into a complete proposal ready for the next C++ committee meeting (in April in Bristol), trying to get it adopted into the C++ standard, possibly into the revision planned for 2014. The implementation I have is part of my regular work and it isn't up to me to decide whether it is can be made available publically although there is some hope that it can be open sourced at some point.

                  这篇关于C++十进制数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  What is inside .lib file of Static library, Statically linked dynamic library and dynamically linked dynamic library?(静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么?)
                  How do I load a C DLL from the SXS in Python?(如何从 Python 中的 SXS 加载 C DLL?)
                  Can Cython code be compiled to a dll so C++ application can call it?(Cython 代码可以编译成 dll 以便 C++ 应用程序可以调用它吗?)
                  Delay Loading DLLs(延迟加载 DLL)
                  Throwing C++ exceptions across DLL boundaries(跨 DLL 边界抛出 C++ 异常)
                  Loading a dll from a dll?(从 dll 加载 dll?)
                1. <i id='3YUn6'><tr id='3YUn6'><dt id='3YUn6'><q id='3YUn6'><span id='3YUn6'><b id='3YUn6'><form id='3YUn6'><ins id='3YUn6'></ins><ul id='3YUn6'></ul><sub id='3YUn6'></sub></form><legend id='3YUn6'></legend><bdo id='3YUn6'><pre id='3YUn6'><center id='3YUn6'></center></pre></bdo></b><th id='3YUn6'></th></span></q></dt></tr></i><div id='3YUn6'><tfoot id='3YUn6'></tfoot><dl id='3YUn6'><fieldset id='3YUn6'></fieldset></dl></div>

                  <small id='3YUn6'></small><noframes id='3YUn6'>

                  • <tfoot id='3YUn6'></tfoot>

                        <bdo id='3YUn6'></bdo><ul id='3YUn6'></ul>
                        <legend id='3YUn6'><style id='3YUn6'><dir id='3YUn6'><q id='3YUn6'></q></dir></style></legend>
                            <tbody id='3YUn6'></tbody>