处理大量数字。

编程入门 行业动态 更新时间:2024-10-20 03:59:14
本文介绍了处理大量数字。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我如何处理C ++中的大数字。示例2 6000 或数字提升到任意两个大素数的幂。 我无法在C ++中处理或存储大数字。有没有办法实现呢?

How can i deal with large numbers in C++. Example 26000 or numbers raised to the powers of any two large prime numbers. I am unable to process or store large numbers in C++. Is there any way to achieve that?

推荐答案

你需要一个大整数库。 Google [ ^ ]是你的朋友。 [更新] 查看以下维基百科页面:
  • IEEE浮点数 [ ^ ]。
  • 四倍精度浮点格式 [ ^ ]。
  • You need a library for big integers. Google[^] is your friend. [update] Have a look at the following Wikipedia pages:
    • "IEEE floating point"[^].
    • "Quadruple precision floating-point format"[^].
    • 或许 System.Numerics.BigInteger 正是您要找的: msdn.microsoft/en -us / library / system.numerics.biginteger.aspx [ ^ ] perhaps System.Numerics.BigInteger is what you are looking for: msdn.microsoft/en-us/library/system.numerics.biginteger.aspx[^]

更多推荐

处理大量数字。

本文发布于:2023-05-28 06:55:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/315117.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数字

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!