checkSafeIntegerByBigInt method

void checkSafeIntegerByBigInt(
  1. BigInt n
)

Checks if n is a safe int. Throws StateError if is not a safe int.

Implementation

void checkSafeIntegerByBigInt(BigInt n) {
  if (!isSafeIntegerByBigInt(n)) {
    throw StateError(_sageErrorMessage(n));
  }
}