Platforms to show: All Mac Windows Linux Cross-Platform

Back to BiggerNumberMBS class.

Next items

BiggerNumberMBS.Abs(value as BiggerNumberMBS) as BiggerNumberMBS

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
Dim c As New BiggerNumberMBS(-3)
Dim d As BiggerNumberMBS = BiggerNumberMBS.Abs(c)
Dim e As BiggerNumberMBS = c.Abs

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

See also:

BiggerNumberMBS.ACos(value as BiggerNumberMBS) as BiggerNumberMBS

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
Dim c As New BiggerNumberMBS(0.5)
Dim d As BiggerNumberMBS = BiggerNumberMBS.ACos(c)

Dim x As Double = ACos(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

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

BiggerNumberMBS.ACosh(value as BiggerNumberMBS) as BiggerNumberMBS

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
Dim c As New BiggerNumberMBS(2.0)
Dim d As BiggerNumberMBS = BiggerNumberMBS.ACosh(c)

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

MsgBox d.StringValue+EndOfLine+Str(x)

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

BiggerNumberMBS.ACot(value as BiggerNumberMBS) as BiggerNumberMBS

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)

BiggerNumberMBS.ACoth(value as BiggerNumberMBS) as BiggerNumberMBS

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)

BiggerNumberMBS.ASin(value as BiggerNumberMBS) as BiggerNumberMBS

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
Dim c As New BiggerNumberMBS(1.0)
Dim d As BiggerNumberMBS = BiggerNumberMBS.ASin(c)

Dim x As Double = ASin(1.0)

MsgBox d.StringValue+EndOfLine+Str(x)

Range is from -1 to 1.

BiggerNumberMBS.ASinh(value as BiggerNumberMBS) as BiggerNumberMBS

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
Dim c As New BiggerNumberMBS(0.5)
Dim d As BiggerNumberMBS = BiggerNumberMBS.ASinH(c)

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

MsgBox d.StringValue+EndOfLine+Str(x)

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

BiggerNumberMBS.ATan(value as BiggerNumberMBS) as BiggerNumberMBS

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
Dim c As New BiggerNumberMBS(0.5)
Dim d As BiggerNumberMBS = BiggerNumberMBS.ATan(c)

Dim x As Double = ATan(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

BiggerNumberMBS.ATanh(value as BiggerNumberMBS) as BiggerNumberMBS

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
Dim c As New BiggerNumberMBS(0.5)
Dim d As BiggerNumberMBS = BiggerNumberMBS.ATanh(c)

// ATanhMBS is in MBS Xojo Util Plugin
Dim 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)

BiggerNumberMBS.Cos(value as BiggerNumberMBS) as BiggerNumberMBS

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
Dim c As New BiggerNumberMBS(1.0)
Dim d As BiggerNumberMBS = BiggerNumberMBS.Cos(c)

Dim x As Double = Cos(1.0)

MsgBox d.StringValue+EndOfLine+Str(x)

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

BiggerNumberMBS.Cosh(value as BiggerNumberMBS) as BiggerNumberMBS

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
Dim c As New BiggerNumberMBS(0.5)
Dim d As BiggerNumberMBS = BiggerNumberMBS.CosH(c)

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

MsgBox d.StringValue+EndOfLine+Str(x)

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

BiggerNumberMBS.Cot(value as BiggerNumberMBS) as BiggerNumberMBS

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

BiggerNumberMBS.Coth(value as BiggerNumberMBS) as BiggerNumberMBS

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

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

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)

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

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:

BiggerNumberMBS.DegToGrad(value as BiggerNumberMBS) as BiggerNumberMBS

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:

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

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:

BiggerNumberMBS.DegToRad(value as BiggerNumberMBS) as BiggerNumberMBS

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:

BiggerNumberMBS.E as BiggerNumberMBS

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

BiggerNumberMBS.Exp(value as BiggerNumberMBS) as BiggerNumberMBS

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

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

BiggerNumberMBS.GradToDeg(value as BiggerNumberMBS) as BiggerNumberMBS

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

BiggerNumberMBS.GradToRad(value as BiggerNumberMBS) as BiggerNumberMBS

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.

BiggerNumberMBS.HalfPi as BiggerNumberMBS

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

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

BiggerNumberMBS.Ln(value as BiggerNumberMBS) as BiggerNumberMBS

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

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

BiggerNumberMBS.Ln10 as BiggerNumberMBS

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

BiggerNumberMBS.Ln2 as BiggerNumberMBS

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

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

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

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

BiggerNumberMBS.Max as BiggerNumberMBS

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

BiggerNumberMBS.Min as BiggerNumberMBS

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

BiggerNumberMBS.Nan as BiggerNumberMBS

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

BiggerNumberMBS.NumberWithCurrency(value as Currency) as BiggerNumberMBS

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

MsgBox b.StringValue

BiggerNumberMBS.NumberWithDouble(value as Double) as BiggerNumberMBS

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

MsgBox b.StringValue

BiggerNumberMBS.NumberWithInt32(value as Int32) as BiggerNumberMBS

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

MsgBox b.StringValue

BiggerNumberMBS.NumberWithInt64(value as Int64) as BiggerNumberMBS

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

MsgBox b.StringValue

BiggerNumberMBS.NumberWithInteger(value as Integer) as BiggerNumberMBS

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

MsgBox b.StringValue

BiggerNumberMBS.NumberWithSingle(value as single) as BiggerNumberMBS

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

MsgBox b.StringValue

BiggerNumberMBS.NumberWithString(value as String) as BiggerNumberMBS

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

MsgBox b.StringValue

BiggerNumberMBS.NumberWithUInt32(value as UInt32) as BiggerNumberMBS

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

MsgBox b.StringValue

BiggerNumberMBS.NumberWithUInt64(value as UInt64) as BiggerNumberMBS

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

MsgBox b.StringValue

BiggerNumberMBS.NumberWithUInteger(value as UInteger) as BiggerNumberMBS

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

MsgBox b.StringValue

BiggerNumberMBS.NumberWithVariant(value as Variant) as BiggerNumberMBS

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

MsgBox b.StringValue

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

BiggerNumberMBS.One as BiggerNumberMBS

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

BiggerNumberMBS.Pi as BiggerNumberMBS

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

BiggerNumberMBS.RadToDeg(value as BiggerNumberMBS) as BiggerNumberMBS

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.

BiggerNumberMBS.RadToGrad(value as BiggerNumberMBS) as BiggerNumberMBS

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

BiggerNumberMBS.Rand as BiggerNumberMBS

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