This method compares the value of this
bigInt to the value of the argument. This method returns a signed number indicating the relative values of
this instance and value. Returns:
>0 : current
bigInt instance is greater than
value or
value is undefined.
=0 : current
bigInt instance is equal to
value
<0 : current
bigInt instance is less than
value
var maxSize = shell.serviceManager.basics.bigInt;
maxSize.value = 1024 * 1024 * 1024; // maxSize = 1 GB
maxSize.multiply(10); // maxSize = 10 GB
if (maxSize.compare(fileStream.size) > 0)
{
// File size is too big - do something here
}
maxSize.divide(10); // maxSize = 1 GB
Assert(maxSize.value == (1024 * 1024 * 1024));