Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

LargeNumberMBS.Multiply(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: Multiply by given integer and return result.
Example:
Dim o As New LargeNumberMBS(5)
Dim r As LargeNumberMBS = o.Multiply(8)

MsgBox r.StringValue // shows 40
Notes: For small numbers this is more efficient than creating new LargeNumberMBS to store value.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Negate 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: Negates the value.
Notes: Returns new value with different sign.

Feedback, Comments & Corrections

LargeNumberMBS.Operator_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.
Example:
Dim l As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(20)
Dim o As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(10)

Dim r As LargeNumberMBS = l+o
Dim s As LargeNumberMBS = o+l

MsgBox r.StringValue+" "+s.StringValue

Feedback, Comments & Corrections

LargeNumberMBS.Operator_AddRight(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.

Feedback, Comments & Corrections

LargeNumberMBS.Operator_And(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: Performs bitwise AND operator on the values.
Example:
Dim l As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(16+4)
Dim o As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(4+2)

Dim ra As LargeNumberMBS = l And o
Dim ro As LargeNumberMBS = l Or o

MsgBox ra.StringValue +" "+ro.StringValue
Notes: Returns new value.

Feedback, Comments & Corrections

LargeNumberMBS.Operator_Compare(other as LargeNumberMBS) 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: Compares two values.
Example:
Dim l As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(20)
Dim o As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(10)

If l > o Then
MsgBox "l is bigger"
Else
MsgBox "o is bigger"
end if
Notes: Returns -1, 1 or 0.

Feedback, Comments & Corrections

LargeNumberMBS.Operator_Convert 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: Converts the number to string.
Example:
Dim l As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(23)
MsgBox l

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Operator_Convert(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: Converts string to large number.
Example:
Dim l As LargeNumberMBS = "123"
MsgBox l

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Operator_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 by other value.
Example:
Dim l As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(21)
Dim o As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(3)
Dim r As LargeNumberMBS = l / o

MsgBox r.stringValue

Feedback, Comments & Corrections

LargeNumberMBS.Operator_DivideRight(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 by other value.
Example:
Dim o As New LargeNumberMBS(5)

// "10" is auto converted to LargeNumberMBS and Operator_DivideRight is called
Dim r As LargeNumberMBS = "10" / o

MsgBox r.StringValue

Feedback, Comments & Corrections

LargeNumberMBS.Operator_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.
Example:
Dim l As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(23)
Dim o As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(3)
Dim r As LargeNumberMBS = l Mod o

MsgBox r.stringValue
Notes: Divides value and returns the rest.

Feedback, Comments & Corrections

LargeNumberMBS.Operator_ModuloRight(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.

Feedback, Comments & Corrections

LargeNumberMBS.Operator_Multiply(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: Multiplies value with other value.
Example:
Dim l As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(4)
Dim o As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(5)
Dim r As LargeNumberMBS = o*l

MsgBox r.stringValue

Feedback, Comments & Corrections

LargeNumberMBS.Operator_MultiplyRight(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: Multiplies value with other value.
Example:
Dim o As New LargeNumberMBS(5)

// "10" is auto converted to LargeNumberMBS and Operator_MultiplyRight is called
Dim r As LargeNumberMBS = "10" * o

MsgBox r.StringValue

Feedback, Comments & Corrections

LargeNumberMBS.Operator_Negate 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: Negates the value.
Example:
Dim l As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(20)
Dim r As LargeNumberMBS = -l

MsgBox r.StringValue

Feedback, Comments & Corrections

LargeNumberMBS.Operator_Or(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: Performs bitwise OR operator on the values.
Example:
Dim l As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(16+4)
Dim o As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(4+2)

Dim ra As LargeNumberMBS = l And o
Dim ro As LargeNumberMBS = l Or o

MsgBox ra.StringValue +" "+ro.StringValue
Notes: Returns new value.

Feedback, Comments & Corrections

LargeNumberMBS.Operator_Subtract(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: Subtracts other number and returns result.
Example:
Dim l As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(20)
Dim o As LargeNumberMBS = LargeNumberMBS.NumberWithInteger(10)

Dim r As LargeNumberMBS = l-o
Dim s As LargeNumberMBS = o-l

MsgBox r.StringValue+" "+s.StringValue

Feedback, Comments & Corrections

LargeNumberMBS.Operator_SubtractRight(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: Subtracts other number and returns result.
Example:
Dim o As New LargeNumberMBS(5)

// "10" is auto converted to LargeNumberMBS and Operator_SubtractRight is called
Dim r As LargeNumberMBS = "10" - o

MsgBox r.StringValue

Feedback, Comments & Corrections

LargeNumberMBS.RightShift(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 right by given number of bits.
Notes: Bits must be <= 32.

Feedback, Comments & Corrections

LargeNumberMBS.SetZero
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Math MBS DataTypes Plugin 19.1 Yes Yes Yes Yes No
Function: Sets number to zero.
Example:
Dim l1 As LargeNumberMBS = LargeNumberMBS.NumberWithInt32(12345)
MsgBox l1.StringValue

// set to zero
l1.SetZero
MsgBox l1.StringValue

Feedback, Comments & Corrections

LargeNumberMBS.SqrMod(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 itself and modulo.
Example:
Dim o As New LargeNumberMBS(90)
Dim m As New LargeNumberMBS(255)
Dim r As LargeNumberMBS = o.SqrMod(m)

MsgBox r.StringValue // shows 195 = (90 * 90) mod 255

Feedback, Comments & Corrections

LargeNumberMBS.sqrt 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 square root of value.
Notes: Get nearly square root of a. The answer will be a >= ret^2.

Feedback, Comments & Corrections

LargeNumberMBS.Square 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 square of current value.
Notes: Return x^2.

Feedback, Comments & Corrections

LargeNumberMBS.SubMod(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: Subtraction 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.SubMod(o, n)

MsgBox r.StringValue // shows 155 = (100-200) mod 255

// -100 is too small, so 255 is added to bring to range.

Feedback, Comments & Corrections

LargeNumberMBS.Subtract(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: Subtracts other number.

See also:

Feedback, Comments & Corrections

LargeNumberMBS.Subtract(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: Subtracts other number and returns result.

See also:

Feedback, Comments & Corrections

Previous items

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

The biggest plugin in space...




Links
MBS FileMaker Plugins