Platforms to show: All Mac Windows Linux Cross-Platform

LargeNumberMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Math MBS DataTypes Plugin 19.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
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

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

Var 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.

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine


Release notes

  • Version 24.0
    • Added new GetStringValue and SetStringValue methods to LargeNumberMBS class with more options.
    • Fixed problem in LargeNumberMBS class when parsing too long string. We now raise an exception.
    • Fixed string parser in LargeNumberMBS to not break on a minus sign sometimes.
  • Version 19.2
  • Version 19.1

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

LargeNumberErrorExceptionMBS   -   LaunchServicesApplicationListMBS

The biggest plugin in space...