Platforms to show: All Mac Windows Linux Cross-Platform

Back to BigNumberConversionMBS class.

BigNumberConversionMBS.Base as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
base (radix) on which the value will be shown (or read)

default: 10
(Read and Write property)

BigNumberConversionMBS.BaseRound as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether to round last digit.

if 'base_round' is true and 'base' is different from 2, 4, 8, or 16 and the result value is not an integer then we make an additional rounding (after converting the last digit from the result is skipped)
default: true
(Read and Write property)

BigNumberConversionMBS.Comma as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The main comma operator (used when reading and writing)

default is a dot "."
(Read and Write property)

BigNumberConversionMBS.Comma2 as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Additional comma operator (used only when reading)
Example
Dim o1 As New BigNumberMBS
Dim o2 As New BigNumberMBS
Dim o3 As New BigNumberMBS

Dim conv As New BigNumberConversionMBS
Dim after1, after2, after3 As String
Dim read1, read2, read3 As Boolean

conv.Comma = "."
conv.Comma2 = ","

// by default comma accepts dot and comma
o1.SetStringValue("1,2", conv, after1, read1)
o2.SetStringValue("1.2", conv, after2, read2)

// now set us conversion
conv.Comma = "."
conv.Comma2 = ""
conv.Group = ","

o3.SetStringValue("1,234.5", conv, after3, read3)

Dim value1 As String = o1.StringValue
Dim value2 As String = o2.StringValue
Dim value3 As String = o3.StringValue

Break

If you don't want it just set it to zero.
default is a comma ','

This allowes you to convert from a value:
123.45 as well as from 123,45
(Read and Write property)

BigNumberConversionMBS.Group1 as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
It sets the character which is used for grouping after comma.

If group1 and group2 are both a space then: 1234,56789 will be printed as: 1 234,567 89
If you don't want grouping just set it to "" (which is default)
(Read and Write property)

BigNumberConversionMBS.Group2 as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
It sets the character which is used for grouping before comma.

If group1 and group2 are both a space then: 1234,56789 will be printed as: 1 234,567 89
If you don't want grouping just set it to "" (which is default)
(Read and Write property)

BigNumberConversionMBS.GroupDigits as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
How many digits should be grouped (it is used if 'group' is non "")

default: 3
(Read and Write property)

BigNumberConversionMBS.Round as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Tells how many digits after comma are possible.

default: -1 which means all digits are printed

set it to zero if you want integer value only.

for example when the value is: 12.345678 and 'round' is 4 then the result will be 12.3457 (the last digit was rounded)
(Read and Write property)

BigNumberConversionMBS.Scientific as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether to use scientific mode.

If true the value will be always shown in the scientific mode, e.g: 123e+30

default: false
(Read and Write property)

BigNumberConversionMBS.ScientificFrom as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Scientific from this exponent value.

If scient is false then the value will be printed in the scientific mode only if the exponent is greater than ScientificFrom.

default: 15
(Read and Write property)

BigNumberConversionMBS.TrimZeroes as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Math MBS DataTypes Plugin 24.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether to trim zeros.

If true that not mattered digits in the mantissa will be cut off
(zero characters at the end -- after the comma operator)
e.g. 1234,78000 will be: 1234,78
default: true
(Read and Write property)

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


The biggest plugin in space...