# Re: 简单又急的问题

Posted by Nelson on December 14, 1998 at 16:29:45:

In Reply to: 简单又急的问题 posted by 乖乖 on December 14, 1998 at 14:58:01:

基本上,以vb的变数来说,若使用variant可比long还能算出更多的位数,但是似乎还达不到您的要求...
建议您将欲相乘之两数字变成字串,再将各别位元做相乘
小学时候都有学过那种简单的乘法吧....
1234 字串A='1234' (乘数,I)
x 345 ==> 字串B=' 345' (被乘数,N)
--------- 字串C='__________' (total)
5X4=20 将20放入字串C==>'_______20'
5X3=15 将15放入字串C==>'_______35'
5X2=10 将10放入字串C==>'_______45'
5X1= 5 将 5放入字串C==>'_______50'
4X4=16 将16放入字串C==>'______195'
4X3=12 将12放入字串C==>'______315'.....

全部乘好后,再将字串C的值拷贝至字串A...继续相同
的动作即可...

Follow Ups: