Platforms to show: All Mac Windows Linux Cross-Platform
BiggerNumberMBS.Operator_Compare(other as BiggerNumberMBS) as Integer
Function:
Compares two numbers.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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
Function:
Converts big number to string automatically.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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)
Function:
Converts a string to a big number.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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
Function:
Divides two numbers.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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
Function:
Divides two numbers.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
BiggerNumberMBS.Operator_IntegerDivide(other as BiggerNumberMBS) as BiggerNumberMBS
Function:
Calculates an integer divide.
Example:
Notes:
Same as normal divide, but removes fraction part.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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_IntegerDivideRight(other as BiggerNumberMBS) as BiggerNumberMBS
Function:
Calculates an integer divide.
Notes: Same as normal divide, but removes fraction part.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: Same as normal divide, but removes fraction part.
BiggerNumberMBS.Operator_Modulo(other as BiggerNumberMBS) as BiggerNumberMBS
Function:
Calculates the modulo of two numbers.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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
Function:
Calculates the modulo of two numbers.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
BiggerNumberMBS.Operator_Multiply(other as BiggerNumberMBS) as BiggerNumberMBS
Function:
Multiply two numbers.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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
Function:
Multiply two numbers.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
BiggerNumberMBS.Operator_Negate as BiggerNumberMBS
Function:
Negates a number.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim a as new BiggerNumberMBS(3)
// negate
dim c as BiggerNumberMBS = -a
MsgBox c.StringValue
BiggerNumberMBS.Operator_Power(other as BiggerNumberMBS) as BiggerNumberMBS
Function:
Calculates power of two numbers.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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
Function:
Calculates power of two numbers.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
BiggerNumberMBS.Operator_Subtract(other as BiggerNumberMBS) as BiggerNumberMBS
Function:
Subtracts one number from other.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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
Function:
Subtracts one number from other.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
BiggerNumberMBS.Pow(other as BiggerNumberMBS) as BiggerNumberMBS
Function:
Calculates the power of the number.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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
Function:
Rounds the number.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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)
Function:
Parses number from string.
Example:
Notes:
Returns also the text after the given text following the number.
Also sets ValueRead if a value was read.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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.
BiggerNumberMBS.SkipFraction as BiggerNumberMBS
Function:
This function skips the fraction.
Example:
Notes:
Similar to floor, but different for negative ones.
e.g
2.2 => 2
2.7 => 2
-2.2 => 2
-2.7 => 2
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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
Function:
Calculates the square root.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as BiggerNumberMBS = new BiggerNumberMBS(256)
dim s as BiggerNumberMBS = o.Sqrt
MsgBox s.StringValue
BiggerNumberMBS.StringValue(Base as Integer) as String
Function:
Get/Set string value with a given base.
Example:
Notes:
(Read and Write computed property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as new BiggerNumberMBS(1234)
// show as hex
MsgBox o.StringValue(16)
See also:
BiggerNumberMBS.Subtract(other as BiggerNumberMBS, round as boolean = true) as BiggerNumberMBS
Function:
Subtracts a number.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 20.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
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
The items on this page are in the following plugins: MBS DataTypes Plugin.
Feedback: Report problem or ask question.
