Platforms to show: All Mac Windows Linux Cross-Platform

CurrencyMulMBS(value1 as Currency, value2 as Integer) as Currency

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Math MBS Util Plugin 14.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Multiplies currency value with integer.
Example
dim c1 as Currency =    1234567890.1234

// in xojo
dim c3 as Currency = c1 * 12345

// with plugin
dim c4 as Currency = CurrencyMulMBS(c1, 12345)

// verify by 64bit math
dim c5 as Int64 = 12345678901234
dim c6 as int64 = c5 * 12345

// and plugin is correct
MsgBox str(c3)+" "+str(c4)+" "+str(c6)

This function uses 64bit integer math to avoid rounding issues.

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


The biggest plugin in space...