Platforms to show: All Mac Windows Linux Cross-Platform
BigNumberMBS.Abs as BigNumberMBS
Function:
Queries absolute value.
Example:
Notes:
Removes sign.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as BigNumberMBS = new BigNumberMBS(-123)
dim z as BigNumberMBS = o.Abs
MsgBox z.StringValue
See also:
BigNumberMBS.Add(other as BigNumberMBS, round as boolean = true) as BigNumberMBS
Function:
Adds a number.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(2)
dim d as new BigNumberMBS(3)
dim p as BigNumberMBS = x.Add(d)
MsgBox p.StringValue // shows 5
BigNumberMBS.BitAnd(other as BigNumberMBS) as BigNumberMBS
Function:
Calculates bitwise AND operation.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(17)
dim y as new BigNumberMBS(16)
dim r as BigNumberMBS = x.BitAnd(y)
MsgBox r.StringValue
BigNumberMBS.BitOr(other as BigNumberMBS) as BigNumberMBS
Function:
Calculates bitwise or operation.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(17)
dim y as new BigNumberMBS(16)
dim r as BigNumberMBS = x.BitOr(y)
MsgBox r.StringValue
BigNumberMBS.BitXOr(other as BigNumberMBS) as BigNumberMBS
Function:
Calculates bitwise xor operation.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(17)
dim y as new BigNumberMBS(16)
dim r as BigNumberMBS = x.BitXOr(y)
MsgBox r.StringValue
BigNumberMBS.Ceil as BigNumberMBS
Function:
This function returns a value representing the smallest integer that is greater than or equal to x.
Example:
Notes:
e.g.
Ceil(-3.7) = -3
Ceil(-3.1) = -3
Ceil(-3.0) = -3
Ceil(4.0) = 4
Ceil(4.2) = 5
Ceil(4.8) = 5
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 BigNumberMBS(-3.7)
Dim d As BigNumberMBS = c.Ceil
MsgBox d // shows -3
e.g.
Ceil(-3.7) = -3
Ceil(-3.1) = -3
Ceil(-3.0) = -3
Ceil(4.0) = 4
Ceil(4.2) = 5
Ceil(4.8) = 5
BigNumberMBS.Constructor
Function:
Initialize the number with zero value.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as BigNumberMBS = new BigNumberMBS
MsgBox o.StringValue
See also:
BigNumberMBS.Constructor(other as BigNumberMBS)
Function:
Initialize the number with other value.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as BigNumberMBS = new BigNumberMBS(2.5)
dim c as BigNumberMBS = new BigNumberMBS(o)
MsgBox c.StringValue
See also:
BigNumberMBS.Constructor(value as Currency)
Function:
Creates a new number object with a currency object.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim v as Currency = 123.456
dim b as new BigNumberMBS(v)
MsgBox b.StringValue
See also:
BigNumberMBS.Constructor(value as Double)
Function:
Initialize the number with double value.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as BigNumberMBS = new BigNumberMBS(2.5)
MsgBox str(o.DoubleValue)+" = "+str(o.StringValue)#
See also:
BigNumberMBS.Constructor(value as Int32)
Function:
Creates a new number with a 32-bit integer.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim v as Int32 = 123
dim b as new BigNumberMBS(v)
MsgBox b.StringValue
See also:
BigNumberMBS.Constructor(value as Int64)
Function:
Creates a new number with a 64-bit integer.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim v as Int64 = 123
dim b as new BigNumberMBS(v)
MsgBox b.StringValue
See also:
BigNumberMBS.Constructor(value as Single)
Function:
Creates a new number with a 32-bit floating point number.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim v as Single = 123
dim b as new BigNumberMBS(v)
MsgBox b.StringValue
See also:
BigNumberMBS.Constructor(value as String)
Function:
Initialize the number with string value.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as BigNumberMBS = new BigNumberMBS("123.456")
MsgBox o.StringValue
See also:
BigNumberMBS.Constructor(value as UInt32)
Function:
Creates a new number with an unsigned 32-bit integer.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim v as UInt32 = 123
dim b as new BigNumberMBS(v)
MsgBox b.StringValue
See also:
BigNumberMBS.Constructor(value as UInt64)
Function:
Creates a new number with an unsigned 32-bit integer.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim v as UInt64 = 123
dim b as new BigNumberMBS(v)
MsgBox b.StringValue
See also:
BigNumberMBS.Divide(other as BigNumberMBS, round as boolean = true) as BigNumberMBS
Function:
Divides the number.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(8)
dim d as new BigNumberMBS(2)
dim p as BigNumberMBS = x.Divide(d)
MsgBox p.StringValue // shows 4
BigNumberMBS.Equals(other as BigNumberMBS) as Boolean
Function:
Checks if two numbers are the same.
Example:
Notes:
Returns true if equal.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as BigNumberMBS = new BigNumberMBS(123)
dim z as BigNumberMBS = new BigNumberMBS(123)
if o.Equals(z) then
MsgBox "equal"
else
Break // error
end if
BigNumberMBS.Floor as BigNumberMBS
Function:
Removes any fraction part.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as BigNumberMBS = new BigNumberMBS(2.3)
dim s as BigNumberMBS = o.Floor
MsgBox s.StringValue
dim a as BigNumberMBS = new BigNumberMBS(-2.3)
dim b as BigNumberMBS = a.Floor
MsgBox b.StringValue
BigNumberMBS.Frac as BigNumberMBS
Function:
Extracts the fraction part.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as BigNumberMBS = new BigNumberMBS(2.5)
dim s as BigNumberMBS = o.Frac
MsgBox s.StringValue
dim a as BigNumberMBS = new BigNumberMBS(-2.5)
dim b as BigNumberMBS = a.Frac
MsgBox b.StringValue
BigNumberMBS.GetStringValue(Base as Integer = 10, scientific as boolean = false, scientificFrom as Integer = 15, round as Integer = -1, TrimZeros as Boolean = true, comma as String = ".") as String
Function:
Queries string value.
Example:
Notes:
Base: The base of the number system. Normally 10, but also 16 for hex is common.
scientific: Whether to use scientific notation.
scientificFrom: How many digits we show.
Round: Whether to round to n digits.
TrimZeros: Whether to trim unneeded zeros.
comma: The character to use as decimal dot.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as new BigNumberMBS(1234)
// show as hex
MsgBox o.GetStringValue(16)
// show as number with comma and 3 digits
dim z as new BigNumberMBS(12.345)
MsgBox z.GetStringValue(10, false, 15, 3, true, ",")
Base: The base of the number system. Normally 10, but also 16 for hex is common.
scientific: Whether to use scientific notation.
scientificFrom: How many digits we show.
Round: Whether to round to n digits.
TrimZeros: Whether to trim unneeded zeros.
comma: The character to use as decimal dot.
BigNumberMBS.Modulate(other as BigNumberMBS) as BigNumberMBS
Function:
Modulates a number.
Example:
Notes:
Similar to mod keyword in Xojo.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(17)
dim y as new BigNumberMBS(3)
dim r as BigNumberMBS = x.Modulate(y)
MsgBox r.StringValue
BigNumberMBS.Modulate2 as Integer
Function:
Modulates by 2.
Example:
Notes:
Returns 0 or 1.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(8)
dim y as new BigNumberMBS(9)
MsgBox str(x.Modulate2)+" "+str(y.Modulate2)
BigNumberMBS.Multiply(other as BigNumberMBS, round as boolean = true) as BigNumberMBS
Function:
Multiplies two numbers.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(8)
dim d as new BigNumberMBS(2)
dim p as BigNumberMBS = x.Multiply(d)
MsgBox p.StringValue // shows 16
See also:
BigNumberMBS.Multiply(value as Integer) as BigNumberMBS
Function:
Multiply by an integer.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(2)
dim p as BigNumberMBS = x.Multiply(3)
MsgBox p.StringValue // shows 6
See also:
BigNumberMBS.Multiply(value as UInt32) as BigNumberMBS
Function:
Multiply by an unsigned integer.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(17)
dim r as BigNumberMBS = x.Multiply(3)
MsgBox r.StringValue
See also:
BigNumberMBS.Negate as BigNumberMBS
Function:
Negates the number.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim o as BigNumberMBS = new BigNumberMBS(123)
dim z as BigNumberMBS = o.Negate
MsgBox z.StringValue
BigNumberMBS.Operator_Add(other as BigNumberMBS) as BigNumberMBS
Function:
Adds a number.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim a as new BigNumberMBS(3)
dim b as new BigNumberMBS(4)
// add
dim c as BigNumberMBS = a + b
MsgBox c.StringValue
BigNumberMBS.Operator_AddRight(other as BigNumberMBS) as BigNumberMBS
Function:
Adds a number.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim a as new BigNumberMBS(3)
dim b as new BigNumberMBS(4)
// add
dim c as BigNumberMBS = a + b
MsgBox c.StringValue
The items on this page are in the following plugins: MBS DataTypes Plugin.
Feedback: Report problem or ask question.
