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.RightShift(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.SetStringValue(Text As String, Base as Integer, byref AfterText as String, Byref ValueRead as boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Math | MBS DataTypes Plugin | 24.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns the text after the given text following the number in AfterText parameter.
Sets ValueRead if a value was read.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
LargeNumberMBS.SqrMod(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.sqrt as LargeNumberMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Get nearly square root of a. The answer will be a >= ret^2.
LargeNumberMBS.Square as LargeNumberMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Math | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Return x^2.
LargeNumberMBS.SubMod(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.Subtract(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.Subtract(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:
The items on this page are in the following plugins: MBS DataTypes Plugin.