对大数字的计算 [英] Calculations on LARGE numbers

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

问题描述




我正在尝试对大数字做一些计算(即

7,768,489,957,892,578,474,792,094 / 12,280)并且无论我做什么

并不是很正确。它总是介于10到5000之间

:(


我有一个怀疑可能是我的其中一个数字函数>
一路上使用,但我不确定。


任何帮助或指导都会非常受欢迎。


提前致谢


Fred

Hi,

I am trying to do some calculations on large numbers (ie
7,768,489,957,892,578,474,792,094 / 12,280) and no matter what I do it
doesn''t get it quite right. Its always somewhere between 10 and and 5000 out
:(

I have a suspition is could be down to one of the number functions I am
using along the way but im not sure.

Any help or guidance would be greatly appriciated.

Thanks in advance

Fred

推荐答案

Fred写道:
Fred wrote:
I我试图对大数字做一些计算(即7,768,489,957,892,578,474,792,094 / 12,280),无论我做什么都没有做到这一点。它总是介于10到5000之间 out :(

我有一个怀疑可能是我一直在使用的数字功能之一,但我不确定。

任何帮助或指导将受到很大的关注。
I am trying to do some calculations on large numbers (ie
7,768,489,957,892,578,474,792,094 / 12,280) and no matter what I do it
doesn''t get it quite right. Its always somewhere between 10 and and 5000
out :(

I have a suspition is could be down to one of the number functions I am
using along the way but im not sure.

Any help or guidance would be greatly appriciated.




VB和VBScript整数是长数据类型(32位)和范围

从-2,147,483,648到2,147,483,647,这是-2 ^ 31到2 ^ 31-1。较大的

值作为Float数据类型处理,即64位。您的大数字是

存储为近似值。


-

Richard

Microsoft MVP脚本和ADSI

Hilltop Lab - http://www.rlmueller.net




" Frinton" < FR ******* @ hotmail.com>在留言中写道

news:44 ****** @ 212.67.96.135 ...

"Frinton" <fr*******@hotmail.com> wrote in message
news:44******@212.67.96.135...


我正在努力做一些关于大数的计算(即7,768,489,957,892,578,474,792,094 / 12,280),无论我做什么都没有做到这一点。它总是介于10到5000之间
out :(


最好将它转换为货币。

dim v

v = CCur(10)

v = v * ccur(103030303030.1034)

我怀疑可能是我的其中一个函数/>使用顺便但我不确定。
Hi,

I am trying to do some calculations on large numbers (ie
7,768,489,957,892,578,474,792,094 / 12,280) and no matter what I do it
doesn''t get it quite right. Its always somewhere between 10 and and 5000
out :(
The best is to convert it to currency.
dim v
v=CCur(10)
v=v * ccur(103030303030.1034)
I have a suspition is could be down to one of the number functions I am
using along the way but im not sure.






Frinton于2006年10月13日在microsoft.public.inetserver.asp.general上写道:
Frinton wrote on 13 mrt 2006 in microsoft.public.inetserver.asp.general:
我正在尝试对大数字进行一些计算(即7,768,489,957,892,578,474,792,094 / 12,280),无论我做什么
都没有得到它非常正确。它总是介于10和之间。
5000
:(

我有一个怀疑可能是我的
上午之一沿途使用,但我不确定。

任何帮助或指导都会受到很大关注。
I am trying to do some calculations on large numbers (ie
7,768,489,957,892,578,474,792,094 / 12,280) and no matter what I do it
doesn''t get it quite right. Its always somewhere between 10 and and
5000 out
:(

I have a suspition is could be down to one of the number functions I
am using along the way but im not sure.

Any help or guidance would be greatly appriciated.




< http:// en。 wikipedia.org/wiki/Long_division>

-

Evertjan。

荷兰。

(请将x''es更改为我的电子邮件地址中的点数)



<http://en.wikipedia.org/wiki/Long_division>
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


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

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