Platforms to show: All Mac Windows Linux Cross-Platform

Next items

LargeNumberMBS.Add(other as LargeNumberMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Adds other number.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Add(other as LargeNumberMBS) as LargeNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Adds other number and returns result.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.AddMod(v as LargeNumberMBS, Modulo as LargeNumberMBS) as LargeNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Addition with modulo.
Example:
Dim v As New LargeNumberMBS(100)
Dim o As New LargeNumberMBS(200)
Dim n As New LargeNumberMBS(&hFF)

Dim r As LargeNumberMBS = v.AddMod(o, n)

MsgBox r.StringValue // shows 45 = (100+200) mod 255

Feedback, Comments & Corrections

LargeNumberMBS.CheckBit(bit as integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Checks whether a bit is set.
Notes: Returns true if bit is set.

Feedback, Comments & Corrections

LargeNumberMBS.Clone as LargeNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Creates a copy of the number.

Feedback, Comments & Corrections

LargeNumberMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Creates a new instance with value zero.
Example:
Dim l1 As New LargeNumberMBS
MsgBox l1.StringValue

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Constructor(other as LargeNumberMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Creates a copy of the number.
Example:
Dim l1 As New LargeNumberMBS(123456789)
Dim l2 As New LargeNumberMBS(l1)

MsgBox l2.StringValue

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Constructor(value as Int32)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Creates a new instance with an 32-bit integer.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Constructor(value as Int64)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Creates a new instance with an 64-bit integer.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Constructor(value as String)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Creates a new number based on a string.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Constructor(value as UInt32)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Creates a new instance with an unsigned 32-bit integer.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Constructor(value as UInt64)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Creates a new instance with an unsigned 64-bit integer.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Decrement(value as UInt32 = 1)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Decrement number with an integer.
Example:
Dim o As New LargeNumberMBS(5)
MsgBox o.StringValue
o.Increment
MsgBox o.StringValue
o.Decrement
MsgBox o.StringValue
Notes: This is faster than building a new LargeNumberMBS, just to subtract some small number.

Feedback, Comments & Corrections

LargeNumberMBS.Divide(other as LargeNumberMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Divides value with by value.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Divide(other as LargeNumberMBS) as LargeNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Divides value with by value.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Divide(value as UInt32) as LargeNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Divide by given integer and return result.
Example:
Dim o As New LargeNumberMBS(63)
Dim r1 As LargeNumberMBS = o.Divide(8)
Dim r2 As UInt32 = o.Modulo(8)

MsgBox r1.StringValue+" "+str(r2) // shows 7 and 7
Notes: For small numbers this is more efficient than creating new LargeNumberMBS to store value.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.DivMod(other as LargeNumberMBS, byref DivResult as LargeNumberMBS, byref ModResult as LargeNumberMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Performs divide and modulo together.
Example:
Dim d As New LargeNumberMBS(100)
Dim n As New LargeNumberMBS(13)

Dim x As LargeNumberMBS
Dim y As LargeNumberMBS

d.DivMod n, x, y

MsgBox d.StringValue + " = " + x.StringValue + " * " + n.StringValue + " + " + y.StringValue
Notes: Puts result into both byref parameters.

Feedback, Comments & Corrections

LargeNumberMBS.Equals(other as LargeNumberMBS) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Compares if two numbers are equal.
Notes: Returns true if equal.

Feedback, Comments & Corrections

LargeNumberMBS.ExpMod(e as LargeNumberMBS, Modulo as LargeNumberMBS) as LargeNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Calculates an exponent.
Example:
Dim o As New LargeNumberMBS(2)
Dim e As New LargeNumberMBS(11)
Dim m As New LargeNumberMBS(255)
Dim r As LargeNumberMBS = o.ExpMod(e,m)

MsgBox r.StringValue // shows 8 = 2^11 mod 255
Notes: Returns x^e mod n where x is the current number, e a parameter and n the modulo parameter.

Feedback, Comments & Corrections

LargeNumberMBS.FindGCD(v as LargeNumberMBS) as LargeNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.2 Yes Yes Yes Yes No
Function: Finds greatest common divisor for two positive numbers.

Feedback, Comments & Corrections

LargeNumberMBS.Increment(value as UInt32 = 1)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Increment number with an integer.
Example:
Dim o As New LargeNumberMBS(5)
MsgBox o.StringValue
o.Increment
MsgBox o.StringValue
o.Decrement
MsgBox o.StringValue
Notes: This is faster than building a new LargeNumberMBS, just to add some small number.

Feedback, Comments & Corrections

LargeNumberMBS.IsPrime(iter as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Checks if number is a prime number.
Example:
Dim lines() As String

For i As Integer = 61 To 69 Step 2
Dim a As New LargeNumberMBS(i)
lines.Append a.StringValue+": "+Str(a.IsPrime(5))
Next

MsgBox Join(lines, EndOfLine)
Notes:
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.

Feedback, Comments & Corrections

LargeNumberMBS.LeftShift(bits as integer) as LargeNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Shifts value to left by given number of bits.
Notes: Bits must be <= 32.

Feedback, Comments & Corrections

LargeNumberMBS.ModInverse(Modulo as LargeNumberMBS) as LargeNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: This function calculates modular multiplicative inverse of an given integer a modulo m.
Example:
Dim l As New LargeNumberMBS(3)
Dim n As New LargeNumberMBS(26)

Dim r As LargeNumberMBS = l.ModInverse(n)

MsgBox r.StringValue

Feedback, Comments & Corrections

LargeNumberMBS.Modulo(other as LargeNumberMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Modulo value.
Notes: Divides value and returns the rest.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Modulo(other as LargeNumberMBS) as LargeNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Modulo value.
Notes: Divides value and returns the rest.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Modulo(value as UInt32) as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Divide by given integer and return remainder.
Example:
Dim o As New LargeNumberMBS(63)
Dim r1 As LargeNumberMBS = o.Divide(8)
Dim r2 As UInt32 = o.Modulo(8)

MsgBox r1.StringValue+" "+str(r2) // shows 7 and 7
Notes: For small numbers this is more efficient than creating new LargeNumberMBS to store value.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.MulMod(v as LargeNumberMBS, Modulo as LargeNumberMBS) as LargeNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Multiply with modulo.
Example:
Dim o As New LargeNumberMBS(50)
Dim f As New LargeNumberMBS(80)
Dim m As New LargeNumberMBS(255)
Dim r As LargeNumberMBS = o.MulMod(f, m)

MsgBox r.StringValue // shows 175 = (50 * 80) mod 255

Feedback, Comments & Corrections

LargeNumberMBS.Multiply(other as LargeNumberMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Multiplies value with other value.

See also:

Feedback, Comments & Corrections

Next items

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

The biggest plugin in space...




Links
MBS Xojo Chart Plugins