Platforms to show: All Mac Windows Linux Cross-Platform
Back to LargeNumberMBS class.
LargeNumberMBS.Add(other as LargeNumberMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.Add(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.AddMod(v as LargeNumberMBS, Modulo as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
LargeNumberMBS.CheckBit(bit as integer) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if bit is set.
LargeNumberMBS.Clone as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.Constructor(other as LargeNumberMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.Constructor(value as Int32)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.Constructor(value as Int64)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.Constructor(value as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises OutOfBoundsExceptionMBS if your string is too long.
See also:
LargeNumberMBS.Constructor(value as UInt32)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.Constructor(value as UInt64)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.Decrement(value as UInt32 = 1)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This is faster than building a new LargeNumberMBS, just to subtract some small number.
LargeNumberMBS.Divide(other as LargeNumberMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.Divide(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.Divide(value as UInt32) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
For small numbers this is more efficient than creating new LargeNumberMBS to store value.
See also:
LargeNumberMBS.DivMod(other as LargeNumberMBS, byref DivResult as LargeNumberMBS, byref ModResult as LargeNumberMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Puts result into both byref parameters.
LargeNumberMBS.Equals(other as LargeNumberMBS) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if equal.
LargeNumberMBS.ExpMod(e as LargeNumberMBS, Modulo as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns x^e mod n where x is the current number, e a parameter and n the modulo parameter.
LargeNumberMBS.FindGCD(v as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Some examples using this method:
LargeNumberMBS.GetStringValue(Base as Integer = 10, ThousandsDelimiter as String = "") as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 24.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
With all default parameter, this is same as StringValue property.
LargeNumberMBS.Increment(value as UInt32 = 1)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This is faster than building a new LargeNumberMBS, just to add some small number.
LargeNumberMBS.IsPrime(iter as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns 1 if prime and 0 if not.
Returns -1 in case of error.
Iter is the factor between 1 and 680 about how deep to iterate. The bigger the this factor, the more exact the check is.
Miller-Rabin Algorithm (ret=1 .. n is composit)
LargeNumberMBS.LeftShift(bits as integer) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Bits must be <= 32.
LargeNumberMBS.ModInverse(Modulo as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
LargeNumberMBS.Modulo(other as LargeNumberMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Divides value and returns the rest.
See also:
Some examples using this method:
LargeNumberMBS.Modulo(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Divides value and returns the rest.
See also:
LargeNumberMBS.Modulo(value as UInt32) as UInt32
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
For small numbers this is more efficient than creating new LargeNumberMBS to store value.
See also:
LargeNumberMBS.MulMod(v as LargeNumberMBS, Modulo as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
LargeNumberMBS.Multiply(other as LargeNumberMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.Multiply(value as UInt32) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
For small numbers this is more efficient than creating new LargeNumberMBS to store value.
See also:
LargeNumberMBS.Negate as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns new value with different sign.
LargeNumberMBS.Operator_Add(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
LargeNumberMBS.Operator_AddRight(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
LargeNumberMBS.Operator_And(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns new value.
LargeNumberMBS.Operator_Compare(other as LargeNumberMBS) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns -1, 1 or 0.
LargeNumberMBS.Operator_Convert as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.Operator_Convert(value as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LargeNumberMBS.Operator_Divide(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
LargeNumberMBS.Operator_DivideRight(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
LargeNumberMBS.Operator_Modulo(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Divides value and returns the rest.
LargeNumberMBS.Operator_ModuloRight(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Divides value and returns the rest.
LargeNumberMBS.Operator_Multiply(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
LargeNumberMBS.Operator_MultiplyRight(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
LargeNumberMBS.Operator_Negate as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
LargeNumberMBS.Operator_Or(other as LargeNumberMBS) as LargeNumberMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns new value.
The items on this page are in the following plugins: MBS DataTypes Plugin.