Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

BiggerNumberMBS.Operator_Compare(other as BiggerNumberMBS) as Integer
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Compares two numbers.
Example:
dim a as new BiggerNumberMBS(1.2)
dim b as new BiggerNumberMBS(1.2)
dim c as new BiggerNumberMBS(1.3)

if a = b then
// ok
else
break
end if

if a < c then
// ok
else
Break
end if

if c > b then
// ok
else
break
end if
BiggerNumberMBS.Operator_Convert as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Converts big number to string automatically.
Example:
dim b as new BiggerNumberMBS
dim n as Double = 5

// convert from double to big number automatically
b = n

// convert to string automatically
MsgBox b

See also:

BiggerNumberMBS.Operator_Convert(value as String)
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Converts a string to a big number.
Example:
dim b as new BiggerNumberMBS
dim n as string = "5"

// convert from string to big number automatically
b = n

// convert to double automatically
dim d as Double = b
MsgBox str(d)

See also:

BiggerNumberMBS.Operator_Divide(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Divides two numbers.
Example:
dim a as new BiggerNumberMBS(9.3)
dim b as new BiggerNumberMBS(3.0)

dim r as BiggerNumberMBS = a / b

MsgBox r.StringValue
BiggerNumberMBS.Operator_DivideRight(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Divides two numbers.
BiggerNumberMBS.Operator_IntegerDivide(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Calculates an integer divide.
Example:
dim a as new BiggerNumberMBS(9.3)
dim b as new BiggerNumberMBS(3.0)

dim r as BiggerNumberMBS = a \ b

MsgBox r.StringValue
Notes: Same as normal divide, but removes fraction part.
BiggerNumberMBS.Operator_IntegerDivideRight(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Calculates an integer divide.
Notes: Same as normal divide, but removes fraction part.
BiggerNumberMBS.Operator_Modulo(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Calculates the modulo of two numbers.
Example:
dim a as new BiggerNumberMBS(9.3)
dim b as new BiggerNumberMBS(3.0)

dim r as BiggerNumberMBS = a mod b

MsgBox r.StringValue
BiggerNumberMBS.Operator_ModuloRight(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Calculates the modulo of two numbers.
BiggerNumberMBS.Operator_Multiply(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Multiply two numbers.
Example:
// speed of light in m/s
Dim SpeedOfLight As New BiggerNumberMBS("299792458")

// seconds per day
Dim SecondsPerDay As New BiggerNumberMBS(24 * 3600)

Dim DaysPerYear As New BiggerNumberMBS(365.25)

Dim LightYear As BiggerNumberMBS = SpeedOfLight * DaysPerYear * SecondsPerDay
MsgBox LightYear.StringValue+" meter per light year"

// 9.460.730.472.580.800 matches number from Wikipedia


Dim AgeOfUniversum As New BiggerNumberMBS(13810000000)

Dim MaxDistance As BiggerNumberMBS = LightYear * AgeOfUniversum

MsgBox MaxDistance.GetStringValue(10, False, 100, 3, True)+" meter maximum"
BiggerNumberMBS.Operator_MultiplyRight(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Multiply two numbers.
BiggerNumberMBS.Operator_Negate as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Negates a number.
Example:
dim a as new BiggerNumberMBS(3)

// negate
dim c as BiggerNumberMBS = -a

MsgBox c.StringValue
BiggerNumberMBS.Operator_Power(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Calculates power of two numbers.
Example:
dim a as new BiggerNumberMBS(3)
dim b as new BiggerNumberMBS(4)

// pow
dim c as BiggerNumberMBS = a ^ b

MsgBox c.StringValue
BiggerNumberMBS.Operator_PowerRight(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Calculates power of two numbers.
BiggerNumberMBS.Operator_Subtract(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Subtracts one number from other.
Example:
dim a as new BiggerNumberMBS(3)
dim b as new BiggerNumberMBS(4)

// subtract
dim c as BiggerNumberMBS = a - b

MsgBox c.StringValue
BiggerNumberMBS.Operator_SubtractRight(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Subtracts one number from other.
BiggerNumberMBS.Pow(other as BiggerNumberMBS) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Calculates the power of the number.
Example:
dim x as new BiggerNumberMBS(2)
dim o as new BiggerNumberMBS(5)
dim p as BiggerNumberMBS = x.Pow(o)

MsgBox p.StringValue // shows 32
BiggerNumberMBS.Round as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Rounds the number.
Example:
dim o as BiggerNumberMBS = new BiggerNumberMBS(2.3)
dim s as BiggerNumberMBS = o.Round

MsgBox s.StringValue

dim a as BiggerNumberMBS = new BiggerNumberMBS(-2.3)
dim b as BiggerNumberMBS = a.Round

MsgBox b.StringValue
BiggerNumberMBS.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 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Parses number from string.
Example:
// set to 1.2 and show
dim o as new BiggerNumberMBS

dim after as string
dim ValueRead as Boolean

o.SetStringValue "1.2 hello", 10, after, ValueRead

MsgBox "value: "+o.StringValue+EndOfLine+"after: "+after
Break
Notes:
Returns also the text after the given text following the number.
Also sets ValueRead if a value was read.
BiggerNumberMBS.SkipFraction as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: This function skips the fraction.
Example:
Dim c As New BiggerNumberMBS(-3.7)
Dim d As BiggerNumberMBS = c.SkipFraction

MsgBox d // shows -3
Notes:
Similar to floor, but different for negative ones.

e.g
2.2 => 2
2.7 => 2
-2.2 => 2
-2.7 => 2
BiggerNumberMBS.Sqrt as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Calculates the square root.
Example:
dim o as BiggerNumberMBS = new BiggerNumberMBS(256)
dim s as BiggerNumberMBS = o.Sqrt

MsgBox s.StringValue
BiggerNumberMBS.StringValue(Base as Integer) as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Get/Set string value with a given base.
Example:
dim o as new BiggerNumberMBS(1234)

// show as hex
MsgBox o.StringValue(16)
Notes: (Read and Write computed property)

See also:

BiggerNumberMBS.Subtract(other as BiggerNumberMBS, round as boolean = true) as BiggerNumberMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Subtracts a number.
Example:
dim x as new BiggerNumberMBS(2)
dim d as new BiggerNumberMBS(3)
dim p as BiggerNumberMBS = x.Subtract(d)

MsgBox p.StringValue // shows -1

Previous items

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

Feedback: Report problem or ask question.

The biggest plugin in space...


Start Chat