Platforms to show: All Mac Windows Linux Cross-Platform

Back to BiggerNumberMBS class.

Previous items

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
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
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
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
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
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
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
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
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
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
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
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

Returns also the text after the given text following the number.
Also sets ValueRead if a value was read.

See also:

BiggerNumberMBS.SetStringValue(Text As String, Conversion as BigNumberConversionMBS)   New in 24.0

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Parses number from string.
Example
Dim o As New BiggerNumberMBS

Dim conv As New BigNumberConversionMBS
conv.Comma = ","
conv.Group = "'"
conv.Scientific = False
conv.Round = 3

o.SetStringValue("1'234'567,89", conv)

MessageBox o.StringValue

See also:

BiggerNumberMBS.SetStringValue(Text As String, Conversion as BigNumberConversionMBS, byref AfterText as String, Byref ValueRead as boolean)   New in 24.0

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Parses number from string.
Example
Dim o As New BiggerNumberMBS

Dim conv As New BigNumberConversionMBS
conv.Comma = ","
conv.Group = "'"
conv.Scientific = False
conv.Round = 3

Dim after As String
Dim read As Boolean

o.SetStringValue("1'234'567,89abc", conv, after, read)
// read will be true and after contains "abc".

Dim value As String = o.StringValue

Dim after2 As String
Dim read2 As Boolean

o.SetStringValue("abc", conv, after2, read2)
// read2 will be false and after2 contains "abc".

Break

Returns the text after the given text following the number in AfterText parameter.
Sets ValueRead if a value was read.

See also:

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
This function skips the fraction.
Example
Dim c As New BiggerNumberMBS(-3.7)
Dim d As BiggerNumberMBS = c.SkipFraction

MsgBox d // shows -3

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
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
Get/Set string value with a given base.
Example
dim o as new BiggerNumberMBS(1234)

// show as hex
MsgBox o.StringValue(16)

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


The biggest plugin in space...