通过什么过程我们将双精度类型消除为整数类型? [英] By what process do we eliminante a double type to an integer type?
本文介绍了通过什么过程我们将双精度类型消除为整数类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
100!阶乘是一个很大的数字,因此,如果要模数,我们需要将数字转换为整数.
100! factorial is a large number so if we want to modulus the number we need convert the number into integer. What''s the process we use to solve the problem?
推荐答案
您不能将100!
转换为标准整数类型(例如__int64
):没有空间了.
您应该使用一个大的整数库,例如:参见Wikipedia上的任意精度算术-库" .
:)
You cannot convert100!
into a standard integer type (e.g.__int64
): there is no room for it.
You should use a big integer library, see for instance: "Arbitrary-precision arithmetic - Libraries" at Wikipedia.
:)
这篇关于通过什么过程我们将双精度类型消除为整数类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文