Platforms to show: All Mac Windows Linux Cross-Platform

Back to BigNumberMBS class.

Next items

BigNumberMBS.Abs(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Absolute value of x.
Example
Var c As New BigNumberMBS(-3)
Var d As BigNumberMBS = BigNumberMBS.Abs(c)
Var e As BigNumberMBS = c.Abs

MsgBox d.StringValue+EndOfLine+e.StringValue // shows 3

See also:

BigNumberMBS.ACos(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the Arc Cosine.
Example
Var c As New BigNumberMBS(0.5)
Var d As BigNumberMBS = BigNumberMBS.ACos(c)

Var x As Double = ACos(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

we're using the formula: acos(x) = pi/2 - asin(x)

BigNumberMBS.ACosh(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Inverse hyperbolic cosine.
Example
Var c As New BigNumberMBS(2.0)
Var d As BigNumberMBS = BigNumberMBS.ACosh(c)

// ACosHMBS is in MBS Xojo Util Plugin
Var x As Double = ACosHMBS(2.0)

MsgBox d.StringValue+EndOfLine+Str(x)

acosh(x) = ln( x + sqrt(x^2 - 1) ) x in <1, infinity)

BigNumberMBS.ACot(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the Arc Cotangent.

we're using the formula: actan(x) = pi/2 - atan(x)

BigNumberMBS.ACoth(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates inverse hyperbolic cotangent.

acoth(x) = 0.5 * ln( (x+1) / (x-1) ) x in (-infinity, -1) or (1, infinity)

BigNumberMBS.ASin(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the Arc Sine.
Example
Var c As New BigNumberMBS(1.0)
Var d As BigNumberMBS = BigNumberMBS.ASin(c)

Var x As Double = ASin(1.0)

MsgBox d.StringValue+EndOfLine+Str(x)

Range is from -1 to 1.

BigNumberMBS.ASinh(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Inverse hyperbolic sine.
Example
Var c As New BigNumberMBS(0.5)
Var d As BigNumberMBS = BigNumberMBS.ASinH(c)

// ASinHMBS is in MBS Xojo Util Plugin
Var x As Double = ASinHMBS(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

asinh(x) = ln( x + sqrt(x^2 + 1) )

BigNumberMBS.ATan(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the Arc Tangent.
Example
Var c As New BigNumberMBS(0.5)
Var d As BigNumberMBS = BigNumberMBS.ATan(c)

Var x As Double = ATan(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

BigNumberMBS.ATanh(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates inverse hyperbolic tangent.
Example
Var c As New BigNumberMBS(0.5)
Var d As BigNumberMBS = BigNumberMBS.ATanh(c)

// ATanhMBS is in MBS Xojo Util Plugin
Var x As Double = ATanhMBS(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

atanh(x) = 0.5 * ln( (1+x) / (1-x) ) x in (-1, 1)

BigNumberMBS.Cos(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the cosine value.
Example
Var c As New BigNumberMBS(1.0)
Var d As BigNumberMBS = BigNumberMBS.Cos(c)

Var x As Double = Cos(1.0)

MsgBox d.StringValue+EndOfLine+Str(x)

We're using the formula cos(x) = sin(x + PI/2).

BigNumberMBS.Cosh(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the Hyperbolic Cosine.
Example
Var c As New BigNumberMBS(0.5)
Var d As BigNumberMBS = BigNumberMBS.CosH(c)

// CosHMBS is in MBS Xojo Util Plugin
Var x As Double = CosHMBS(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

We're using the formula cosh(x)= ( e^x + e^(-x) ) / 2.

BigNumberMBS.Cot(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the Cotangent.

We're using the formula tan(x) = cos(x) / sin(x).

BigNumberMBS.Coth(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the Hyperbolic Cotangent.

We're using the formula coth(x)= ( e^x + e^(-x) ) / ( e^x - e^(-x) )

BigNumberMBS.DegToDeg(d as BigNumberMBS, m as BigNumberMBS, s as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts degrees in the long format into one value.

long format: (degrees, minutes, seconds)
minutes and seconds must be greater than or equal zero

result:
if d>=0 : result= d + ((s/60)+m)/60
if d<0 : result= d - ((s/60)+m)/60

((s/60)+m)/60 = (s+60*m)/3600 (second version is faster because there's only one division)

for example:
DegToDeg(10, 30, 0) = 10.5
DegToDeg(10, 24, 35.6)=10.4098(8)

BigNumberMBS.DegToGrad(d as BigNumberMBS, m as BigNumberMBS, s as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts degrees in the long format to gradians.

See also:

BigNumberMBS.DegToGrad(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts degrees to gradians.

it returns: x * 200 / 180

See also:

BigNumberMBS.DegToRad(d as BigNumberMBS, m as BigNumberMBS, s as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts degrees in the long format to radians.

See also:

BigNumberMBS.DegToRad(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts degrees to radians.

It returns: x * pi / 180

See also:

BigNumberMBS.E as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a number with value zero.
Example
Var b as BigNumberMBS = BigNumberMBS.e
MsgBox b.StringValue

BigNumberMBS.Exp(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates e^value.
Example
Var x as new BigNumberMBS(2)
Var p as BigNumberMBS = BigNumberMBS.Exp(x)

MsgBox p.StringValue // shows e^2 = 7.38

BigNumberMBS.GradToDeg(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts degrees to gradians.

it returns: x * 180 / 200

BigNumberMBS.GradToRad(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts gradians to radians.

It returns: x * pi / 200.

BigNumberMBS.HalfPi as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a number with value pi/2.
Example
Var b as BigNumberMBS = BigNumberMBS.HalfPi
MsgBox b.StringValue

BigNumberMBS.LibTypeStr as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries what implementation is used for this platform.

Shows asm in the text if assembler code is used.
Assembler code is not available for all platforms.

BigNumberMBS.Ln(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates natural logarithm.
Example
Var x as new BigNumberMBS(2)
Var p as BigNumberMBS = BigNumberMBS.Ln(x)

MsgBox p.StringValue // shows ln(2) = 0.69

BigNumberMBS.Ln10 as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a number with value ln(10).
Example
Var b as BigNumberMBS = BigNumberMBS.Ln10
MsgBox b.StringValue

BigNumberMBS.Ln2 as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a number with value ln(2).
Example
Var b as BigNumberMBS = BigNumberMBS.Ln2
MsgBox b.StringValue

BigNumberMBS.Log(value as BigNumberMBS, base as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates logarithm in a given base.
Example
Var x as new BigNumberMBS(100)
Var d as new BigNumberMBS(10)
Var p as BigNumberMBS = BigNumberMBS.Log(x, d)

MsgBox p.StringValue // shows ln(100)/ln(10) = 2

BigNumberMBS.Max as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a number with maximum value.
Example
Var b as BigNumberMBS = BigNumberMBS.Min
MsgBox b.StringValue

BigNumberMBS.Min as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a number with minimum value.
Example
Var b as BigNumberMBS = BigNumberMBS.Min
MsgBox b.StringValue

BigNumberMBS.Nan as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a number with value NaN.
Example
Var b as BigNumberMBS = BigNumberMBS.Nan
MsgBox b.StringValue

BigNumberMBS.NumberWithCurrency(value as Currency) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a number with a currency value.
Example
Var v as Currency = 123.456
Var b as BigNumberMBS = BigNumberMBS.NumberWithCurrency(v)

MsgBox b.StringValue

BigNumberMBS.NumberWithDouble(value as Double) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a number with a 64-bit floating number.
Example
Var v as Double = 123.456
Var b as BigNumberMBS = BigNumberMBS.NumberWithDouble(v)

MsgBox b.StringValue

BigNumberMBS.NumberWithInt32(value as Int32) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a number with a signed 32-bit integer.
Example
Var v as Int32 = 123
Var b as BigNumberMBS = BigNumberMBS.NumberWithInt32(v)

MsgBox b.StringValue

BigNumberMBS.NumberWithInt64(value as Int64) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a number with a signed 64-bit integer.
Example
Var v as Int64 = 123
Var b as BigNumberMBS = BigNumberMBS.NumberWithInt64(v)

MsgBox b.StringValue

BigNumberMBS.NumberWithInteger(value as Integer) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a number with an integer.
Example
Var v as Integer = 123
Var b as BigNumberMBS = BigNumberMBS.NumberWithInteger(v)

MsgBox b.StringValue

BigNumberMBS.NumberWithSingle(value as single) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a number with an 32-bit floating point number.
Example
Var v as Single = 123
Var b as BigNumberMBS = BigNumberMBS.NumberWithSingle(v)

MsgBox b.StringValue

BigNumberMBS.NumberWithString(value as String) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a number with value from string.
Example
Var v as String = "123"
Var b as BigNumberMBS = BigNumberMBS.NumberWithString(v)

MsgBox b.StringValue

BigNumberMBS.NumberWithUInt32(value as UInt32) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a number with an unsigned 32-bit integer.
Example
Var v as UInt32 = 123
Var b as BigNumberMBS = BigNumberMBS.NumberWithUInt32(v)

MsgBox b.StringValue

BigNumberMBS.NumberWithUInt64(value as UInt64) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a number with an unsigned 64-bit integer.
Example
Var v as UInt64 = 123
Var b as BigNumberMBS = BigNumberMBS.NumberWithUInt64(v)

MsgBox b.StringValue

BigNumberMBS.NumberWithUInteger(value as UInteger) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a number with an unsigned integer.
Example
Var v as UInteger = 123
Var b as BigNumberMBS = BigNumberMBS.NumberWithUInteger(v)

MsgBox b.StringValue

BigNumberMBS.NumberWithVariant(value as Variant) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a number based on a variant.
Example
Var v as Variant = 123.456
Var b as BigNumberMBS = BigNumberMBS.NumberWithVariant(v)

MsgBox b.StringValue

Internally redirects to other NumberWith functions based on the value type.

BigNumberMBS.One as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a number with value one.
Example
Var b as BigNumberMBS = BigNumberMBS.One
MsgBox b.StringValue

BigNumberMBS.Pi as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a number with value pi.
Example
Var b as BigNumberMBS = BigNumberMBS.Pi
MsgBox b.StringValue

BigNumberMBS.RadToDeg(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts radians to degrees.

It returns: x * 180 / pi.

BigNumberMBS.RadToGrad(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts radians to gradians.

it returns: x * 200 / pi

BigNumberMBS.Rand as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates random number.

Mantissa and exponent are filled with random bytes to generate a random names.

Next items

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


The biggest plugin in space...