Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

LargeNumberMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: An 4128 bit integer number.
Dim n1 As Int64 = 10000000000
Dim n2 As Int64 = 10000000000
Dim n3 As Int64 = n1 * n2 // overflow, so wrong result

Dim l1 As LargeNumberMBS = LargeNumberMBS.NumberWithInt64(n1)
Dim l2 As LargeNumberMBS = LargeNumberMBS.NumberWithInt64(n2)
Dim l3 As LargeNumberMBS = l1 * l2

Dim s4 As String = l3.StringValue // this is correct

Can be useful to calculate with more than Int64.
This class works with up to 1224 digits.

See BigNumberMBS for a 320 bit floating point number.

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:

Blog Entries

The items on this page are in the following plugins: MBS DataTypes Plugin.

LargeNumberErrorExceptionMBS   -   LaunchServicesApplicationListMBS

MBS Xojo PDF Plugins