作业帮 > 数学 > 作业

大数除法的VB实现方法

来源:学生作业帮 编辑:作业帮 分类:数学作业 时间:2024/11/07 16:47:13
大数除法的VB实现方法
我实现大数除以小数的余数问题,用VB实现
如果数很大超出整形变量的存储范围呢?
Private Declare Function icePub_bigIntegerCalculate Lib "icePubDll.dll" (ByVal strArithmetic As String, ByVal strResult As String) As Integer
Dim strResult As String
Dim a2 As Integer
strResult = Space(1024)
a2=icePub_bigIntegerCalculate("12131415+81716151413121",strResult)
MsgBox strResult
strResult = Space(1024)
a2=icePub_bigIntegerCalculate("121314151617171910121314151617171910-817161154321",strResult)
MsgBox strResult
strResult = Space(1024)
a2=icePub_bigIntegerCalculate("12131415161718*81716151413121",strResult)
MsgBox strResult
strResult = Space(1024)
a2=icePub_bigIntegerCalculate("1213141516171719/11212313",strResult)
MsgBox strResult