Platforms to show: All Mac Windows Linux Cross-Platform

Back to BigNumberMBS class.

BigNumberMBS.CurrencyValue as Currency

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets/Queries currency value.
Example
dim u as Currency = 1234.5678
dim b as new BigNumberMBS(u)
MsgBox str(b.CurrencyValue)

(Read and Write property)

BigNumberMBS.DataExponent as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The exponent for this number.

Setting this may need to update flags, too.
(Read and Write property)

BigNumberMBS.DataFlags as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The flags.

Bits are 128 for Sign, 64 for NAN and 32 for zero.
(Read and Write property)

BigNumberMBS.DataMantissa as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The mantissa for this number.

Setting this may need to update flags, too.
(Read and Write property)

BigNumberMBS.DoubleValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get or Set the double value.
Example
dim o as BigNumberMBS = new BigNumberMBS(2.5)

MsgBox str(o.DoubleValue)+" = "+str(o.StringValue)

(Read and Write property)

BigNumberMBS.Int64Value as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get/Set value as Int64.
Example
dim u as Int64 = &h7FFFFFFFFFFFFFFF // maximum Int64
dim b as new BigNumberMBS(u)
MsgBox str(b.Int64Value)

dim one as new BigNumberMBS(1)
b = b + one

// raises exception due to overflow
MsgBox str(b.Int64Value)

(Read and Write property)

BigNumberMBS.IntegerValue as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get or Set the integer value.
Example
dim o as BigNumberMBS = new BigNumberMBS(2.5)

MsgBox str(o.IntegerValue)+" = "+str(o.StringValue)

(Read and Write property)

BigNumberMBS.IsInteger as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether this number is an integer.
Example
dim o as BigNumberMBS = new BigNumberMBS(1)
dim z as BigNumberMBS = new BigNumberMBS(1.5)

if o.IsInteger then
MsgBox o.StringValue+" is integer"
else
break // error
end if

if z.IsInteger then
break // error
else
MsgBox z.StringValue+" is not integer"
end if

If true, there are no digits after the dot.
(Read only property)

BigNumberMBS.IsNan as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether this is an invalid number.
Example
dim o as BigNumberMBS = BigNumberMBS.zero
dim z as BigNumberMBS = BigNumberMBS.Nan

if z.IsNan then
MsgBox z.StringValue+" is NaN"
else
break // error
end if

if o.IsNan then
break // error
else
MsgBox o.StringValue+" is not NaN"
end if

(Read only property)

BigNumberMBS.IsNegative as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether this value is negative.
Example
dim o as BigNumberMBS = BigNumberMBS.one
dim z as BigNumberMBS = BigNumberMBS.one.Negate

if z.IsNegative then
MsgBox z.StringValue+" is negative"
else
break // error
end if

if o.IsNegative then
break // error
else
MsgBox o.StringValue+" is not negative"
end if

(Read only property)

BigNumberMBS.IsZero as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Checks if value is zero.
Example
dim o as BigNumberMBS = BigNumberMBS.one
dim z as BigNumberMBS = BigNumberMBS.zero

if z.IsZero then
MsgBox z.StringValue+" is zero"
else
break // error
end if

if o.IsZero then
break // error
else
MsgBox o.StringValue+" is not zero"
end if

(Read only property)

BigNumberMBS.StringValue as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get or set string value of text.
Example
// set to 1.2 and show
dim o as new BigNumberMBS("1.2")
MsgBox o.StringValue

// set to 2.3
o.StringValue = "2.3"
MsgBox o.StringValue

(Read and Write property)

See also:

BigNumberMBS.UInt64Value as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get/Set value as UInt64.
Example
dim u as UInt64 = 12345678901234567890
dim b as new BigNumberMBS(u)
MsgBox str(b.UInt64Value)

(Read and Write property)

BigNumberMBS.VariantValue as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries/Sets value with variant.

Floating point values are given as Double.
Integer types as Int32, Int64 or UInt64.
If value exceeds the ranges of those data types, we fall back to string.

When setting, the value is converted to a big number similiar to NumberWithVariant.
(Read and Write property)

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


The biggest plugin in space...