在VBA中处理大于Long的数字 [英] Handling numbers larger than Long in VBA

查看:537
本文介绍了在VBA中处理大于Long的数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在VBA中编写一些代码来解决Project Euler的问题。我一直在试图回答一个问题,需要你找到可以分为不符合长期数字的素数。任何建议如何处理这个问题?我知道我可以在两个变量之间分割数字,我已经做了加法和减法,但是不能划分。任何帮助将不胜感激。

解决方案

看看这里:大数算术


I am Currently trying to write some code in VBA to solve a problem from Project Euler. I have been trying to answer a question that requires you to find primes that can be divided into a number that will not fit in a long. Any suggestions as how to handle this problem?

I know I can split the number between two variables and I have done that for addition and subtraction but never division. Any help will be appreciated.

解决方案

Take a look here: Large Number Arithmetic

这篇关于在VBA中处理大于Long的数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆