method subtract

void subtract(value value);

Argumente

Zurückgegebener Wert

This method performs the arithmetic difference between the bigInt and the specified value.
var bigInt = shell.serviceManager.basics.bigInt;
bigInt.value = 1024 * 1024 * 1024;          // bigInt = 1 GB
bigInt.multiply(10);                        // bigInt = 10 GB
bigInt.subtract(1024 * 1024 * 1024);
// 9 GB = 0x240000000
Assert(bigInt.toString() == "9663676416");